Tuesday, May 5, 2015

Re: Strange behavior after insert some shortcuts...

yes, this was the problem!

I'm trying to organize the vimrc with comments and this broken my configs.
I removed the comments and all working now!
I didn't know that i can't put the comments in the same line!

Thanks

On Mon, May 4, 2015 at 12:18 AM, Ben Fritz <fritzophrenic@gmail.com> wrote:
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.



--
Raphael Rabelo de Oliveira
Red Hat Certified Enginner - RHCE
Cel: 11 96105-8257

Raphael Rabelo's profile on LinkedIn

--
--
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: