Hi,

Chris Jones wrote:
> 
> Now, let me read all about the 's' in 'set whichwrap' and see if I can
> get rid of it - since I'd rather like to keep a comment in my .vimrc,
> like so:
> 
> nnoremap <Space> i<Space><Esc>             " what this does..

it's best to never write a comment after a mapping -- just put it in a
separate line above or below.

Apart from the additional movement this line also results in an error,
because the space after the quote character is not a valid register
name. You should have heard a beep or seen Vim's window flash.

If you really want to put the comment on the same line insert a bar
immediately after the last character of you mapping, i.e.,

  nnoremap <Space> i<Space><Esc>|            " what this does..

The bar ends the nnoremap and starts a new command -- which solely
consists of a single comment.

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to