Main Page | Report this Page
Computers Forum Index  »  Computer - Editors  »  taglist noremap...
Page 1 of 1    

taglist noremap...

Author Message
greg_robbins...
Posted: Sat Sep 05, 2009 4:34 pm
Guest
I have taglist.vim running properly on Ubunto 8.04. I have this near
the end of my .vimrc file:

nnoremap <silent> <F8> :TlistToggle<cr>

but it does not work when I open vim. I get this:

Not connected
Not connected

Press ENTER or type command to continue

Once I have vim open, I can do:

:nnoremap <silent> <F8> :TlistToggle<cr>

and then it DOES work but it's a pain to do that every time.

Any suggestions??
 
Phil...
Posted: Sun Sep 06, 2009 2:37 pm
Guest
greg_robbins wrote:
Quote:
I have taglist.vim running properly on Ubunto 8.04. I have this near
the end of my .vimrc file:

nnoremap <silent> <F8> :TlistToggle<cr

but it does not work when I open vim. I get this:

Not connected
Not connected

Press ENTER or type command to continue

Once I have vim open, I can do:

:nnoremap <silent> <F8> :TlistToggle<cr

and then it DOES work but it's a pain to do that every time.

Any suggestions??

Probably Vim loads .vimrc before plugins are loaded. So you'll need to
load your command later. Maybe this will work:-
au VimEnter * nnoremap <silent> <F8> :TlistToggle<cr>
 
greg_robbins...
Posted: Mon Sep 07, 2009 4:55 am
Guest
That did the trick! Thanks!

Greg
 
 
Page 1 of 1    
All times are GMT
The time now is Wed Dec 02, 2009 8:43 pm