aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitmodules6
m---------pack/coderonline/start/vim-karlmarks0
-rw-r--r--plugin/KarlMarks.vim29
-rw-r--r--plugin/karlmarks.vim7
4 files changed, 13 insertions, 29 deletions
diff --git a/.gitmodules b/.gitmodules
index b446fde..857c94c 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -67,3 +67,9 @@
67[submodule "pack/_all/start/deoplete.nvim"] 67[submodule "pack/_all/start/deoplete.nvim"]
68 path = pack/_all/start/deoplete.nvim 68 path = pack/_all/start/deoplete.nvim
69 url = https://github.com/Shougo/deoplete.nvim.git 69 url = https://github.com/Shougo/deoplete.nvim.git
70[submodule "vim-karlmarks"]
71 path = vim-karlmarks
72 url = http://git.entwicklerseite.de/vim-karlmarks
73[submodule "pack/coderonline/start/vim-karlmarks"]
74 path = pack/coderonline/start/vim-karlmarks
75 url = http://git.entwicklerseite.de/vim-karlmarks
diff --git a/pack/coderonline/start/vim-karlmarks b/pack/coderonline/start/vim-karlmarks
new file mode 160000
Subproject 9747ae42e4201b0991152d45a604b81c01d3e81
diff --git a/plugin/KarlMarks.vim b/plugin/KarlMarks.vim
deleted file mode 100644
index f0699e1..0000000
--- a/plugin/KarlMarks.vim
+++ /dev/null
@@ -1,29 +0,0 @@
1let g:markerbar_additional = '"' " position in buffer when left
2let g:markerbar_additional .= '<>' " start/end last selection
3let g:markerbar_additional .= '{}' " start/end paragraph
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
10function! KarlMarks()
11 for c in map(split(g:markerbar_additional, '\zs'), "char2nr(v:val)") +
12 \ range(char2nr('a'), char2nr('z')) +
13 \ range(char2nr('A'), char2nr('Z')) +
14 \ range(char2nr('0'), char2nr('9'))
15
16 let p = getpos("'".nr2char(c))
17
18 if (p[0] == 0 || p[0] == winbufnr(0)) && p[1] > 0
19 exec "sign unplace ".c
20 exec "sign define mark_".c." text=".nr2char(c)." texthl=SignColumn"
21 exec "sign place ".c." name=mark_".c." line=".p[1]." buffer=".winbufnr(0)
22 endif
23 endfor
24endfunction
25
26autocmd CursorHold * call KarlMarks()
27
28" important for distraction free reading while changing windows
29" setlocal signcolumn=yes
diff --git a/plugin/karlmarks.vim b/plugin/karlmarks.vim
new file mode 100644
index 0000000..9e22144
--- /dev/null
+++ b/plugin/karlmarks.vim
@@ -0,0 +1,7 @@
1let g:karlmarks = '"' " position in buffer when left
2let g:karlmarks .= '{}' " start/end paragraph
3let g:karlmarks .= '()' " start/end sentence
4let g:karlmarks .= '[]' " start/end sentence
5let g:karlmarks .= '.' " last change
6let g:karlmarks .= "^" " insert mode stopped
7let g:karlmarks .= "'`"
..