prose file added
This commit is contained in:
parent
003645a3f2
commit
2d1a20210c
1 changed files with 38 additions and 0 deletions
38
.vim/luke/prose.vim
Normal file
38
.vim/luke/prose.vim
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
let g:ProseOn=0
|
||||||
|
|
||||||
|
function! ToggleProse()
|
||||||
|
if !g:ProseOn
|
||||||
|
call Prose()
|
||||||
|
else
|
||||||
|
call ProseOff()
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! Prose()
|
||||||
|
echo "Prose: On"
|
||||||
|
let g:ProseOn=1
|
||||||
|
|
||||||
|
noremap j gj
|
||||||
|
noremap k gk
|
||||||
|
noremap 0 g0
|
||||||
|
noremap $ g$
|
||||||
|
noremap A g$a
|
||||||
|
noremap I g0i
|
||||||
|
setlocal linebreak nonumber norelativenumber t_Co=0 foldcolumn=2
|
||||||
|
hi! link FoldColumn Normal
|
||||||
|
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! ProseOff()
|
||||||
|
echo "Prose: Off"
|
||||||
|
let g:ProseOn=0
|
||||||
|
|
||||||
|
noremap j j
|
||||||
|
noremap k k
|
||||||
|
noremap 0 0
|
||||||
|
noremap $ $
|
||||||
|
noremap A A
|
||||||
|
noremap I I
|
||||||
|
setlocal nolinebreak number relativenumber t_Co=256 foldcolumn=0
|
||||||
|
|
||||||
|
endfunction
|
Loading…
Reference in a new issue