diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/vim-karlmarks.vim | 14 |
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 @@ | |||
1 | let g:markerbar_additional = '"' " position in buffer when left | 1 | if !exists("g:karlmarks") |
2 | let g:markerbar_additional .= '<>' " start/end last selection | 2 | let g:karlmarks = "<>" |
3 | let g:markerbar_additional .= '{}' " start/end paragraph | 3 | endif |
4 | let g:markerbar_additional .= '()' " start/end sentence | ||
5 | let g:markerbar_additional .= '[]' " start/end sentence | ||
6 | let g:markerbar_additional .= '.' " last change | ||
7 | let g:markerbar_additional .= "^" " insert mode stopped | ||
8 | let g:markerbar_additional .= "'`" | ||
9 | 4 | ||
10 | function! KarlMarks() | 5 | function! 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 |
24 | endfunction | 19 | endfunction |
25 | |||
26 | autocmd CursorHold * call KarlMarks() | 20 | autocmd CursorHold * call KarlMarks() |
27 | 21 | ||
28 | " important for distraction free reading while changing windows | 22 | " important for distraction free reading while changing windows |