I need to put all the command in a mapping, for example :map <C-F10> :s/,/,\r/g | normal gv | normal =
but it doesn't work correctly On 27 Ott, 19:54, Gary Johnson <[email protected]> wrote: > On 2009-10-27, Robbo wrote: > > Hello, > > I need to execute: > > > :'<,'>s/,/,^M/g > > > and than, select by visual all the lines affected by the previous > > command and execute > > :normal == > > If by "affected" you mean the entire visually-selected region rather > than just those lines modified by the substitute command, you can > reselect that region with > > gv > > To indent those selected lines, just type > > = > > --there's no need to use ":normal ==". > > Regards, > Gary --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
