Sunday, May 3, 2015

Re: Strange behavior after insert some shortcuts...

On Saturday, May 2, 2015 at 6:47:17 AM UTC-5, Raphael Rabelo de Oliveira wrote:
> Hello guys,
> I'm trying to add some shortcuts to my vimrc file, but a weird behavior is happening:
>
> When i use the new shortcuts, the vim moves the cursor automatically, it's a very strange!
>
> I'm sending my "good" vimrc: http://pastebin.com/aCKJD4a2
>
> Here the new shortcuts that I want insert:
>
> nnoremap <CR> G
> nnoremap <BS> gg
> nnoremap <leader>x :x<CR>
> nnoremap <leader>w :w<CR>
>

Are the trailing spaces actually there in your .vimrc or just part of the email?

If they're actually in your .vimrc, then Vim is running the ` ` command which moves the cursor forward.

If that's not your problem, then you really need to specify what "moves the cursor automatically" means.

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment