Nikolai Weibull wrote: > I have the following mapping: > > map g: <Esc>:set operatorfunc=<SID>get_command_mode_range<CR>g@ > > and have recorded > > g:}j^M > > into register 'a'. > > Running @a now does nothing. > > Why? > > (It should run :join from the current line to the end of the current > paragraph.)
You're missing a :, the <Esc> in the mapping clears the command line but doesn't put the : back to receive the }j^M which instead become normal commands (end of paragraph, cursor down, cursor to next line). Either record g::}j^M or use map g: <Esc>:set operatorfunc=<SID>get_command_mode_range<CR>g@: Cheers, Ben. Send instant messages to your online friends http://au.messenger.yahoo.com --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
