Friday, June 17, 2011

Re: problems in the key mapping in vimrc

On 18/06/11 03:00, milton_viziak wrote:
> hello i have a doubt to map keys in the vimrc file I have two plugins
> NERDTree and the Command-T. And he is set to open by pressing the Standing
> Leader p and I want to change it to Ctrl N.
>
> the code looks like this in vimrc
> silent! nmap<silent> <Leader>p :NERDTreeToggle<CR>
> nnoremap<silent> <C-f> :call FindInNERDTree()<CR>
>
> and I put so
> silent! nmap<silent> <C-n> :NERDTreeToggle<CR>
> nnoremap<silent> <C-f> :call FindInNERDTree()<CR>
>
> this is Ctrl-N but does not work
>
> and the line of this so-Command-T
> nnoremap<Leader>t :CommandT<CR>
>
> and I put so I want to open it with Ctrl-t
> nnoremap<C-t> :CommandT<CR>
>
> but none worked as I do?

Well, let's see what happened: first, make sure the window (or one of
the windows) where you want to use these mappings is current, then type

:verbose map <C-N>
:verbose map <C-F>
:verbose map <C-T>

and see what the replies are.


Best regards,
Tony.
--
Chicago law prohibits eating in a place that is on fire.

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

No comments: