aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/vim-karlmarks.vim14
1 files changed, 4 insertions, 10 deletions
diff --git a/plugin/vim-karlmarks.vim b/plugin/vim-karlmarks.vim
index f0699e1..cd54fa5 100644
--- a/plugin/vim-karlmarks.vim
+++ b/plugin/vim-karlmarks.vim
@@ -1,14 +1,9 @@
1let g:markerbar_additional = '"' " position in buffer when left 1if !exists("g:karlmarks")
2let g:markerbar_additional .= '<>' " start/end last selection 2 let g:karlmarks = "<>"
3let g:markerbar_additional .= '{}' " start/end paragraph 3endif
4let g:markerbar_additional .= '()' " start/end sentence
5let g:markerbar_additional .= '[]' " start/end sentence
6let g:markerbar_additional .= '.' " last change
7let g:markerbar_additional .= "^" " insert mode stopped
8let g:markerbar_additional .= "'`"
9 4
10function! KarlMarks() 5function! KarlMarks()
11 for c in map(split(g:markerbar_additional, '\zs'), "char2nr(v:val)") + 6 for c in map(split(g:karlmarks, '\zs'), "char2nr(v:val)") +
12 \ range(char2nr('a'), char2nr('z')) + 7 \ range(char2nr('a'), char2nr('z')) +
13 \ range(char2nr('A'), char2nr('Z')) + 8 \ range(char2nr('A'), char2nr('Z')) +
14 \ range(char2nr('0'), char2nr('9')) 9 \ range(char2nr('0'), char2nr('9'))
@@ -22,7 +17,6 @@ function! KarlMarks()
22 endif 17 endif
23 endfor 18 endfor
24endfunction 19endfunction
25
26autocmd CursorHold * call KarlMarks() 20autocmd CursorHold * call KarlMarks()
27 21
28" important for distraction free reading while changing windows 22" important for distraction free reading while changing windows
..