Thursday, March 3, 2011

toggle virtualedit and show state

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

No comments: