20 lines
329 B
VimL
20 lines
329 B
VimL
|
" http://vimcasts.org/episodes/soft-wrapping-text/
|
||
|
function! SetupWrapping()
|
||
|
set wrap linebreak nolist
|
||
|
set showbreak=…
|
||
|
endfunction
|
||
|
|
||
|
command! -nargs=* Wrap :call SetupWrapping()<CR>
|
||
|
|
||
|
vmap <D-j> gj
|
||
|
vmap <D-k> gk
|
||
|
vmap <D-4> g$
|
||
|
vmap <D-6> g^
|
||
|
vmap <D-0> g^
|
||
|
nmap <D-j> gj
|
||
|
nmap <D-k> gk
|
||
|
nmap <D-4> g$
|
||
|
nmap <D-6> g^
|
||
|
nmap <D-0> g^
|
||
|
|