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

toggle virtualedit and show state

Expand Messages
  • Bee
    This works to toggle invisibles and show the state: nmap :setlocal list! list? This works to toggle virtualedit and show the state: nmap :let
    Message 1 of 1 , Mar 3, 2011
    • 0 Attachment
      This works to toggle invisibles and show the state:

      nmap <F1> :setlocal list! list?<cr>

      This works to toggle virtualedit and show the state:

      nmap <F11> :let &virtualedit=&virtualedit=="" ? "all" : "" <bar> set
      virtualedit?<cr>

      How else could this be done?

      -Bill

      --
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.