From 547c653d66a66bbcdfd3f9daeeee99da591f3b25 Mon Sep 17 00:00:00 2001
From: Max Christian Pohle
Date: Tue, 26 Mar 2019 01:07:36 +0100
Subject: Fixed statusline / improved docs in mark plugin

---
 plugin/KarlMarks.vim  | 8 +++++++-
 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 @@
-let g:markerbar_additional = '$^"^.`{}[]<>()'
+let g:markerbar_additional =   '"'   " position in buffer when left
+let g:markerbar_additional .=  '<>'  " start/end last selection
+let g:markerbar_additional .=  '{}'  " start/end paragraph
+let g:markerbar_additional .=  '()'  " start/end sentence
+let g:markerbar_additional .=  '.'   " last change
+let g:markerbar_additional .=  "^"   " insert mode stopped
+let g:markerbar_additional .=  "'`"
 
 function! KarlMarks()
     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
     endfunction
 
     function! UpdateStatus(highlight_group)
-        " TODO: make conditional (if devicons plugin is missing)
-        let l:webdev_ft_icon = WebDevIconsGetFileTypeSymbol('*.'.&filetype)
         let l:invert_group = CreateInvertGroup(a:highlight_group)
         let l:mode = get({
                     \  'n'      : 'normal',
@@ -58,6 +56,8 @@ augroup MAX_FANCYLINE
                     \  "\<C-s>" : 'select block',
                     \  't'      : 'terminal'
                     \ }, mode(), mode())
+        let l:webdev_ft_icon = exists("*WebDevIconsGetFileTypeSymbol") ? 
+                    \ WebDevIconsGetFileTypeSymbol('*.'.&filetype) : ""
         return ''
                     \ ."%#StatusLineHighlight#"
                     \ ."%#".a:highlight_group."#"
-- 
cgit v1.2.3