diff options
Diffstat (limited to 'vimrc-full')
-rw-r--r-- | vimrc-full | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -249,7 +249,7 @@ set foldopen=block,hor,search | " when do we unfold? | |||
249 | " set foldtext=Foldtext() | " | 249 | " set foldtext=Foldtext() | " |
250 | " set foldtext=v:folddashes.substitute(getline(v:foldstart),'\\v^/[/*]\','','g') | 250 | " set foldtext=v:folddashes.substitute(getline(v:foldstart),'\\v^/[/*]\','','g') |
251 | " set foldtext='⊞\ '.substitute(getline(v:foldstart),'^[\ '.printf(&cms,'').']*','','').'↵'.getline(v:foldstart+1).'↵'.getline(v:foldstart+2) | 251 | " set foldtext='⊞\ '.substitute(getline(v:foldstart),'^[\ '.printf(&cms,'').']*','','').'↵'.getline(v:foldstart+1).'↵'.getline(v:foldstart+2) |
252 | set foldtext='⊞\ '.substitute(substitute(join(getline(v:foldstart,v:foldend)),'\\s\\s\\+\\\|\[\*\/\]','\ ','g'),'\^\\s\\+','','g') | 252 | set foldtext='⊞\ '.substitute(substitute(substitute(join(getline(v:foldstart,v:foldend)),'\\s\\s\\+\\\|\[\*\/\]','\ ','g'),'\^\\s\\+','','g'),\ '\\s\\s\\+',\ '\ ',\ 'g') |
253 | 253 | ||
254 | " vim window behaviour | 254 | " vim window behaviour |
255 | set splitbelow | " open new windows below the current one (i find that more intuitive) | 255 | set splitbelow | " open new windows below the current one (i find that more intuitive) |
@@ -517,8 +517,8 @@ if has("autocmd") | |||
517 | 517 | ||
518 | menu &Git.&Display\ uncommited\ files\ in\ location\ list | 518 | menu &Git.&Display\ uncommited\ files\ in\ location\ list |
519 | \ :call setloclist(0, map(systemlist("git diff --name-only --pretty=''"), {_, p->{'filename': fnamemodify(p, ':.')}}))<CR>:lopen<CR> | 519 | \ :call setloclist(0, map(systemlist("git diff --name-only --pretty=''"), {_, p->{'filename': fnamemodify(p, ':.')}}))<CR>:lopen<CR> |
520 | menu &Git.&Display\ recently\ changed\ files\ in\ location\ list | 520 | menu &Git.&Display\ recently\ changed\ files\ in\ quickfix\ list |
521 | \ :call setloclist(0, map(systemlist("git show --name-only --pretty=''"), {_, p->{'filename': fnamemodify(p, ':.')}}))<CR>:lopen<CR> | 521 | \ :call setqflist([], 'r', {'title': 'Recently changed in GIT', 'items':map(systemlist("git show --name-only --pretty=''"), {_, p->{'filename': fnamemodify(p, ':.')}}) })<CR>:copen<CR> |
522 | menu &Git.&Display\ last\ changes | 522 | menu &Git.&Display\ last\ changes |
523 | \ :let g:signify_vcs_cmds={'git': 'git diff --no-color --no-ext-diff -U0 HEAD^ -- %f'}<CR>:SignifyRefresh<CR> | 523 | \ :let g:signify_vcs_cmds={'git': 'git diff --no-color --no-ext-diff -U0 HEAD^ -- %f'}<CR>:SignifyRefresh<CR> |
524 | menu &Git.&Display\ unmerged\ files\ in\ location\ list | 524 | menu &Git.&Display\ unmerged\ files\ in\ location\ list |
@@ -690,7 +690,6 @@ Plug 'NLKNguyen/papercolor-theme' | " the one I like the most | |||
690 | Plug 'mhinz/vim-signify' | " uses the sign column to indicate added, modified and removed lines | 690 | Plug 'mhinz/vim-signify' | " uses the sign column to indicate added, modified and removed lines |
691 | Plug 'tpope/vim-fugitive' | " the most complete GIT integration plugin | 691 | Plug 'tpope/vim-fugitive' | " the most complete GIT integration plugin |
692 | Plug 'godlygeek/tabular' | " align code on a sign, like :Tab/= | 692 | Plug 'godlygeek/tabular' | " align code on a sign, like :Tab/= |
693 | Plug 'severin-lemaignan/vim-minimap' | ||
694 | Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' | 693 | Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' |
695 | let g:signify_vcs_list = [ 'git' ] | " use signify only with git (improves speed when loading buffers, see :h signify) | 694 | let g:signify_vcs_list = [ 'git' ] | " use signify only with git (improves speed when loading buffers, see :h signify) |
696 | let g:signify_cursorhold_insert = 0 | 695 | let g:signify_cursorhold_insert = 0 |
@@ -998,7 +997,7 @@ function! ExtendColorTheme() | |||
998 | highlight! MoreMsg cterm=inverse | 997 | highlight! MoreMsg cterm=inverse |
999 | highlight! link Folded LineNr | 998 | highlight! link Folded LineNr |
1000 | " highlight! Cursor guibg=#729fcf ctermbg=yellow | 999 | " highlight! Cursor guibg=#729fcf ctermbg=yellow |
1001 | highlight! link VertSplit LineNr | 1000 | highlight! link VertSplit NonText |
1002 | " highlight! SpellBad ctermbg=none | 1001 | " highlight! SpellBad ctermbg=none |
1003 | highlight! SpecialKey ctermfg=19 | 1002 | highlight! SpecialKey ctermfg=19 |
1004 | highlight! WhiteSpace ctermfg=19 | 1003 | highlight! WhiteSpace ctermfg=19 |
@@ -1180,7 +1179,7 @@ augroup status | |||
1180 | \ ."%{(&readonly\ ?\ '\ \ \ '\ :\ '')}" | 1179 | \ ."%{(&readonly\ ?\ '\ \ \ '\ :\ '')}" |
1181 | \ ."%{(&modified\ ?\ '\ \ '.nr2char(0xF0C7).'\ '\ :\ '')\ }" | 1180 | \ ."%{(&modified\ ?\ '\ \ '.nr2char(0xF0C7).'\ '\ :\ '')\ }" |
1182 | \ ."%{(haslocaldir() ?\ ' '.fnamemodify(getcwd(),\ ':.').' '.nr2char(0xe0b1)\ \:\ '')}\ " | 1181 | \ ."%{(haslocaldir() ?\ ' '.fnamemodify(getcwd(),\ ':.').' '.nr2char(0xe0b1)\ \:\ '')}\ " |
1183 | \ ."%{(&buftype\ ==\ \"terminal\"\ ?\ b:term_title\ :\ substitute(expand('%:p'),\ '^'.getcwd(-1).'/*',\ '',\ ''))\ }" | 1182 | \ ."%{(&buftype\ ==\ \"terminal\"\ ?\ has('nvim')?b:term_title:expand(&titlestring)\ :\ substitute(expand('%:p'),\ '^'.getcwd(-1).'/*',\ '',\ ''))\ }" |
1184 | \ ."%1(%)" | 1183 | \ ."%1(%)" |
1185 | \ ."%#".l:invert_group."#" | 1184 | \ ."%#".l:invert_group."#" |
1186 | \ .g:status_sym_end | 1185 | \ .g:status_sym_end |