diff options
author | Max Christian Pohle | 2018-06-07 21:26:23 +0200 |
---|---|---|
committer | Max Christian Pohle | 2018-06-07 21:26:23 +0200 |
commit | 72bc799d4d3da199d3f4d97ab41fe85ca75bfd76 (patch) | |
tree | 4204a8210392d2566a5f6e8bfccd14a169f5a31d | |
parent | 7d10104b42aea22b1f5ec956234801af898ae42f (diff) | |
download | vim-72bc799d4d3da199d3f4d97ab41fe85ca75bfd76.tar.bz2 vim-72bc799d4d3da199d3f4d97ab41fe85ca75bfd76.zip |
Added arglist count to statusbar
-rw-r--r-- | after/syntax/c.vim | 5 | ||||
-rw-r--r-- | 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 | |||
16 | syn region cBlock start=/{/ end=/}/ transparent | 16 | syn region cBlock start=/{/ end=/}/ transparent |
17 | 17 | ||
18 | " multiple single line comments in a row | 18 | " multiple single line comments in a row |
19 | syn clear cComment | 19 | syn region myCComment start="/\*" end="\*/" fold keepend transparent |
20 | syn match cComment /\v\/\/.*(\_.\/\/.*)+/ fold contains=@spell | ||
21 | syn region cComment start="\/\*" end="\*\/" | ||
22 | syn region Folded start="^\/\*" end="\*\/" fold contains=@spell | ||
23 | 20 | ||
24 | 21 | ||
25 | " let b:current_syntax = "c" | 22 | " let b:current_syntax = "c" |
@@ -506,6 +506,8 @@ if has("autocmd") | |||
506 | 09menu &Directory.Change\ to\ current\ buffers\ directory\ (local\ window)<tab>:lcd\ %:p:h | 506 | 09menu &Directory.Change\ to\ current\ buffers\ directory\ (local\ window)<tab>:lcd\ %:p:h |
507 | \ :lcd %:p:h<CR>:pwd<CR> | 507 | \ :lcd %:p:h<CR>:pwd<CR> |
508 | 508 | ||
509 | menu &Git.&Display\ uncommited\ files\ in\ location\ list | ||
510 | \ :call setloclist(0, map(systemlist("git diff --name-only --pretty=''"), {_, p->{'filename': fnamemodify(p, ':.')}}))<CR>:lopen<CR> | ||
509 | menu &Git.&Display\ recently\ changed\ files\ in\ location\ list | 511 | menu &Git.&Display\ recently\ changed\ files\ in\ location\ list |
510 | \ :call setloclist(0, map(systemlist("git show --name-only --pretty=''"), {_, p->{'filename': fnamemodify(p, ':.')}}))<CR>:lopen<CR> | 512 | \ :call setloclist(0, map(systemlist("git show --name-only --pretty=''"), {_, p->{'filename': fnamemodify(p, ':.')}}))<CR>:lopen<CR> |
511 | menu &Git.&Display\ last\ changes | 513 | menu &Git.&Display\ last\ changes |
@@ -1143,6 +1145,8 @@ augroup status | |||
1143 | \ ."%#".a:highlight_group."#" | 1145 | \ ."%#".a:highlight_group."#" |
1144 | \ ."%(%w%h%q\ %{ModeString()}%)" | 1146 | \ ."%(%w%h%q\ %{ModeString()}%)" |
1145 | \ ."%-2{nr2char(0xe621)}" | 1147 | \ ."%-2{nr2char(0xe621)}" |
1148 | \ ."%{(argc()>0\ ?\ argidx()+1.':'.argc().' '.nr2char(0xe621).' '\ :\ '')}" | ||
1149 | \ ."%{winbufnr(0).' '.nr2char(0xe621)}" | ||
1146 | \ ."%{(&readonly\ ?\ '\ \ \ '\ :\ '')}" | 1150 | \ ."%{(&readonly\ ?\ '\ \ \ '\ :\ '')}" |
1147 | \ ."%{(&modified\ ?\ nr2char(0xF0C7).'\ '\ :\ '')\ }" | 1151 | \ ."%{(&modified\ ?\ nr2char(0xF0C7).'\ '\ :\ '')\ }" |
1148 | \ ."%{(&buftype\ ==\ \"terminal\"\ ?\ ''\ :\ fnamemodify(getcwd(),\ ':~').nr2char(0xf44a))}\ " | 1152 | \ ."%{(&buftype\ ==\ \"terminal\"\ ?\ ''\ :\ fnamemodify(getcwd(),\ ':~').nr2char(0xf44a))}\ " |
@@ -1162,7 +1166,7 @@ augroup status | |||
1162 | \ ."%{(&fileencoding\ !=\ ''\ ?\ &fileencoding.' '.nr2char(0xe621)\ :\ '')}" | 1166 | \ ."%{(&fileencoding\ !=\ ''\ ?\ &fileencoding.' '.nr2char(0xe621)\ :\ '')}" |
1163 | \ ."%{(&fileformat\ !=\ ''\ ?\ &fileformat\ :\ '')}" | 1167 | \ ."%{(&fileformat\ !=\ ''\ ?\ &fileformat\ :\ '')}" |
1164 | \ ."%(\ %{nr2char(0xe621)}\ %)" | 1168 | \ ."%(\ %{nr2char(0xe621)}\ %)" |
1165 | \ ."%4l:%-4c" | 1169 | \ ."%4l:%-3c" |
1166 | \ ."%(\ %{nr2char(0xe621)}\ %)" | 1170 | \ ."%(\ %{nr2char(0xe621)}\ %)" |
1167 | \ ."%-3p%%" | 1171 | \ ."%-3p%%" |
1168 | endfunction | 1172 | endfunction |