Created
August 6, 2010 19:13
-
-
Save bronson/511822 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Make \w toggle through the three wrapping modes. | |
" Add this to your vimrc: | |
:function ToggleWrap() | |
: if (&wrap == 1) | |
: if (&linebreak == 0) | |
: set linebreak | |
: else | |
: set nowrap | |
: endif | |
: else | |
: set wrap | |
: set nolinebreak | |
: endif | |
:endfunction | |
map <leader>w :call ToggleWrap()<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment