Gary Johnson <garyj...@spocom.com> [13-05-18 20:36]: > On 2013-05-18, meino cramer wrote: > > Hi, > > > > is there a way to replace (for example) position 110-117 in each line > > of a text to (for example) to "." ? > > > > I only found regular expressions handling the length of matches but > > not their position in a line. > > > > Since what I want to acchieve lastly is lot of work I dont want > > to add n '.' or do wild calculations from positions to lengths > > of strings. > > > > Directly using the positions themselves would be nice. > > > > Is that possible with vim? How? > > See > > :help /\%c > > For example: > > :%s/\%110c.*\%118c/./ > > Regards, > Gary > > -- > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to the Google Groups > "vim_use" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to vim_use+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > >
Hi Gary, thank you for your help! :) Best regards, mcc -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.