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

Re: MAPPINGS: Is it possible to define them like switches for enabling/disabling an option ?

Expand Messages
  • Yakov Lerner
    ... map :se hls! Yakov
    Message 1 of 9 , Mar 30, 2006
      On 3/30/06, Baha-Eddine MOKADEM <bmokadem@...> wrote:
      > Hello Vimmers,
      > Is it possible to make a mapping to work like a switch aka :
      > - press once this key <Fn> then turn ON option_a
      > - press this key <Fn> again then turn OFF option_a
      > This is what I have in my _vimrc :
      > map <F9> :nohlsearch<CR>
      > map <F9><F9> :set hlsearch<CR>

      map <f9> :se hls!<cr>

    Your message has been successfully submitted and would be delivered to recipients shortly.