added function for wrapping text.
This commit is contained in:
19
vim/plugin/settings/yadr-wrapping.vim
Normal file
19
vim/plugin/settings/yadr-wrapping.vim
Normal file
@@ -0,0 +1,19 @@
|
||||
" 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^
|
||||
|
||||
Reference in New Issue
Block a user