" http://vimcasts.org/episodes/soft-wrapping-text/ function! SetupWrapping() set wrap linebreak nolist set showbreak=… endfunction " TODO: this should happen automatically for certain file types (e.g. markdown) command! -nargs=* Wrap :call SetupWrapping() vmap gj vmap gk vmap g$ vmap g^ vmap g^ nmap gj nmap gk nmap g$ nmap g^ nmap g^