diff options
author | Max Christian Pohle | 2019-03-26 01:07:36 +0100 |
---|---|---|
committer | Max Christian Pohle | 2019-03-26 01:07:36 +0100 |
commit | 547c653d66a66bbcdfd3f9daeeee99da591f3b25 (patch) | |
tree | 1a0e04a89b03433fdcb426a7b57bbc75bcc7a6fe /plugin | |
parent | 709278107208a9ac4d3aef1c192f70f9200785e5 (diff) | |
download | vim-547c653d66a66bbcdfd3f9daeeee99da591f3b25.tar.bz2 vim-547c653d66a66bbcdfd3f9daeeee99da591f3b25.zip |
Fixed statusline / improved docs in mark plugin
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/KarlMarks.vim | 8 | ||||
-rw-r--r-- | plugin/statusline.vim | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/plugin/KarlMarks.vim b/plugin/KarlMarks.vim index effb22b..a36ecab 100644 --- a/plugin/KarlMarks.vim +++ b/plugin/KarlMarks.vim | |||
@@ -1,4 +1,10 @@ | |||
1 | let g:markerbar_additional = '$^"^.`{}[]<>()' | 1 | let g:markerbar_additional = '"' " position in buffer when left |
2 | let g:markerbar_additional .= '<>' " start/end last selection | ||
3 | let g:markerbar_additional .= '{}' " start/end paragraph | ||
4 | let g:markerbar_additional .= '()' " start/end sentence | ||
5 | let g:markerbar_additional .= '.' " last change | ||
6 | let g:markerbar_additional .= "^" " insert mode stopped | ||
7 | let g:markerbar_additional .= "'`" | ||
2 | 8 | ||
3 | function! KarlMarks() | 9 | function! KarlMarks() |
4 | for c in map(split(g:markerbar_additional, '\zs'), "char2nr(v:val)") + | 10 | for c in map(split(g:markerbar_additional, '\zs'), "char2nr(v:val)") + |
diff --git a/plugin/statusline.vim b/plugin/statusline.vim index 0dc1040..d7f3fbd 100644 --- a/plugin/statusline.vim +++ b/plugin/statusline.vim | |||
@@ -42,8 +42,6 @@ augroup MAX_FANCYLINE | |||
42 | endfunction | 42 | endfunction |
43 | 43 | ||
44 | function! UpdateStatus(highlight_group) | 44 | function! UpdateStatus(highlight_group) |
45 | " TODO: make conditional (if devicons plugin is missing) | ||
46 | let l:webdev_ft_icon = WebDevIconsGetFileTypeSymbol('*.'.&filetype) | ||
47 | let l:invert_group = CreateInvertGroup(a:highlight_group) | 45 | let l:invert_group = CreateInvertGroup(a:highlight_group) |
48 | let l:mode = get({ | 46 | let l:mode = get({ |
49 | \ 'n' : 'normal', | 47 | \ 'n' : 'normal', |
@@ -58,6 +56,8 @@ augroup MAX_FANCYLINE | |||
58 | \ "\<C-s>" : 'select block', | 56 | \ "\<C-s>" : 'select block', |
59 | \ 't' : 'terminal' | 57 | \ 't' : 'terminal' |
60 | \ }, mode(), mode()) | 58 | \ }, mode(), mode()) |
59 | let l:webdev_ft_icon = exists("*WebDevIconsGetFileTypeSymbol") ? | ||
60 | \ WebDevIconsGetFileTypeSymbol('*.'.&filetype) : "" | ||
61 | return '' | 61 | return '' |
62 | \ ."%#StatusLineHighlight#" | 62 | \ ."%#StatusLineHighlight#" |
63 | \ ."%#".a:highlight_group."#" | 63 | \ ."%#".a:highlight_group."#" |