Re: keymap for switching buffers
- Thanks Tony, that's a excellent tip. I wasn't aware of the spaces to customize the text
to the command. Very useful. Five years ago when I started coding I used to hate VIM
because I didn't understand the modes, etc. Now I don't know what I would do without it.
--- "A. J. Mechelynck" <antoine.mechelynck@...> wrote:
> Justin Randall wrote:__________________________________________________
> > Excellent. Thanks very much for the advice everyone. I've got all the Fn keys tied up
> > with functions that I don't really use. For example F9 sets filetype to unix, F10
> sets it
> > to dos. I'm also aware that on the Sun systems we have at work, the F11 and F12 keys
> > unresponsive in console VIM. I have F11 mapped to :Tlist so that I can navigate my
> > easier with the taglist plugin, and of course it doesn't work on the Sun boxes.
> > -Justin
> If you don't use them, you can remap them to something else, e.g.:
> map <F9> :w<CR>
> map <C-F9> :saveas<Space>
> imap <F9> <C-O>:w<CR>
> imap <C-F9> <C-O>:saveas<Space>
> map <F10> :e #<CR>
> imap <F10> <C-O>:e #<CR>
> The 2nd and 4th above intentionally don't end in <CR> so you can "fill
> them in" with whatever filename you want to use for saving.
> Best regards,
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around