On Oct 8, 10:20 am, ZyX <[email protected]> wrote: > > > You're trying to execute a normal-mode command where an :ex command is > > > expected. What you are trying to do is: > > :folddoc normal! '<C-R>a' > > > However, may I instead suggest: > > > 1. Visually select the lines you wish to execute the command on (or > > use marks as you are doing) > > 2. :'<,'>normal! '<C-R>a' > > «normal! '<C-r>a'» is a wrong syntax for expressing > execute "normal! \<C-r>a" > What you have written is the same as > execute "normal! '<"."C"."-R>a'" > or ``go to the start of selection ('<) and replace the text to the end-of-line > (C) with «-R>a'»''. Please test your answer before you post it. >
I am aware of that. I was not suggesting pressing 5 keystrokes to get <C-R>, I was suggesting physically typing CTRL+R. I interpreted this to be what the OP was doing. I understood the attempted solution to be: :folddoc (insert contents of 'a' register) I was suggesting this instead: :foddoc normal! '(insert contents of "a" register)' I am sorry for the confusion. -- 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
