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 --- after/syntax/c.vim | 5 +---- vimrc-full | 6 +++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/after/syntax/c.vim b/after/syntax/c.vim index cdbdc54..75170cf 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim @@ -16,10 +16,7 @@ syn clear cBlock syn region cBlock start=/{/ end=/}/ transparent " multiple single line comments in a row -syn clear cComment -syn match cComment /\v\/\/.*(\_.\/\/.*)+/ fold contains=@spell -syn region cComment start="\/\*" end="\*\/" -syn region Folded start="^\/\*" end="\*\/" fold contains=@spell +syn region myCComment start="/\*" end="\*/" fold keepend transparent " let b:current_syntax = "c" 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):lcd\ %:p:h \ :lcd %:p:h:pwd + menu &Git.&Display\ uncommited\ files\ in\ location\ list + \ :call setloclist(0, map(systemlist("git diff --name-only --pretty=''"), {_, p->{'filename': fnamemodify(p, ':.')}})):lopen menu &Git.&Display\ recently\ changed\ files\ in\ location\ list \ :call setloclist(0, map(systemlist("git show --name-only --pretty=''"), {_, p->{'filename': fnamemodify(p, ':.')}})):lopen 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