aboutsummaryrefslogtreecommitdiff
path: root/vim/.vim/plugged/vimling/plugin/prose.vim
diff options
context:
space:
mode:
authorKumar Damani <damani.kumar@gmail.com>2019-04-26 18:49:26 +0000
committerKumar Damani <damani.kumar@gmail.com>2019-04-26 18:49:26 +0000
commit5a6ed5fcb3b89d0c2b4e8ba2953c4ba806d4b171 (patch)
tree5be0c043b0c8d632e35a8b4ef7e23452b103b94d /vim/.vim/plugged/vimling/plugin/prose.vim
parentaf821092fe78ef159d7cb6536bb006712dc01b9d (diff)
added vim dir
Diffstat (limited to 'vim/.vim/plugged/vimling/plugin/prose.vim')
-rw-r--r--vim/.vim/plugged/vimling/plugin/prose.vim38
1 files changed, 38 insertions, 0 deletions
diff --git a/vim/.vim/plugged/vimling/plugin/prose.vim b/vim/.vim/plugged/vimling/plugin/prose.vim
new file mode 100644
index 0000000..cf9470e
--- /dev/null
+++ b/vim/.vim/plugged/vimling/plugin/prose.vim
@@ -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