From 72bc799d4d3da199d3f4d97ab41fe85ca75bfd76 Mon Sep 17 00:00:00 2001
From: Max Christian Pohle
Date: Thu, 7 Jun 2018 21:26:23 +0200
Subject: Added arglist count to statusbar

---
 vimrc-full | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'vimrc-full')

diff --git a/vimrc-full b/vimrc-full
index 7d178ce..d049e85 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -506,6 +506,8 @@ if has("autocmd")
         09menu &Directory.Change\ to\ current\ buffers\ directory\ (local\ window)<tab>:lcd\ %:p:h
               \ :lcd %:p:h<CR>:pwd<CR>
 
+        menu &Git.&Display\ uncommited\ files\ in\ location\ list
+              \ :call setloclist(0, map(systemlist("git diff --name-only --pretty=''"), {_, p->{'filename': fnamemodify(p, ':.')}}))<CR>:lopen<CR>
         menu &Git.&Display\ recently\ changed\ files\ in\ location\ list
               \ :call setloclist(0, map(systemlist("git show --name-only --pretty=''"), {_, p->{'filename': fnamemodify(p, ':.')}}))<CR>:lopen<CR>
         menu &Git.&Display\ last\ changes
@@ -1143,6 +1145,8 @@ augroup status
       \ ."%#".a:highlight_group."#"
       \ ."%(%w%h%q\ %{ModeString()}%)"
       \ ."%-2{nr2char(0xe621)}"
+      \ ."%{(argc()>0\ ?\ argidx()+1.':'.argc().' '.nr2char(0xe621).' '\ :\ '')}"
+      \ ."%{winbufnr(0).' '.nr2char(0xe621)}"
       \ ."%{(&readonly\ ?\ '\ \ \ '\ :\ '')}"
       \ ."%{(&modified\ ?\ nr2char(0xF0C7).'\ '\ :\ '')\ }"
       \ ."%{(&buftype\ ==\ \"terminal\"\ ?\ ''\ :\ fnamemodify(getcwd(),\ ':~').nr2char(0xf44a))}\ "
@@ -1162,7 +1166,7 @@ augroup status
       \ ."%{(&fileencoding\ !=\ ''\ ?\ &fileencoding.' '.nr2char(0xe621)\ :\ '')}"
       \ ."%{(&fileformat\ !=\ ''\ ?\ &fileformat\ :\ '')}"
       \ ."%(\ %{nr2char(0xe621)}\ %)"
-      \ ."%4l:%-4c"
+      \ ."%4l:%-3c"
       \ ."%(\ %{nr2char(0xe621)}\ %)"
       \ ."%-3p%%"
   endfunction
-- 
cgit v1.2.3