Loading ...
Sorry, an error occurred while loading the content.
 

Re: keymap for switching buffers

Expand Messages
  • Justin Randall
    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
    Message 1 of 9 , Jan 31, 2006
      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.

      -Justin

      --- "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
      > are
      > > unresponsive in console VIM. I have F11 mapped to :Tlist so that I can navigate my
      > code
      > > 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,
      > Tony.
      >
      >


      __________________________________________________
      Do You Yahoo!?
      Tired of spam? Yahoo! Mail has the best spam protection around
      http://mail.yahoo.com
    Your message has been successfully submitted and would be delivered to recipients shortly.