aboutsummaryrefslogtreecommitdiff
path: root/vimrc-full
diff options
context:
space:
mode:
authorMax Christian Pohle2018-10-04 21:35:05 +0200
committerMax Christian Pohle2018-10-04 21:35:05 +0200
commitc2808a2053fa4d382a1ad7edc9637951c9eefc55 (patch)
tree7420b4501fe7c7feed16ae2dda360619d000144c /vimrc-full
parent1e3c2a1174da4ef32d18865181317f4ecff7e194 (diff)
downloadvim-c2808a2053fa4d382a1ad7edc9637951c9eefc55.tar.bz2
vim-c2808a2053fa4d382a1ad7edc9637951c9eefc55.zip
Minor refactoring
- beautification of the vertical bar - removed Vim Minimap plugin - GIT shows recently changed files in the quickfix list instead of the location list
Diffstat (limited to 'vimrc-full')
-rw-r--r--vimrc-full11
1 files changed, 5 insertions, 6 deletions
diff --git a/vimrc-full b/vimrc-full
index c0ac443..cc7cce0 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -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)
252set foldtext='⊞\ '.substitute(substitute(join(getline(v:foldstart,v:foldend)),'\\s\\s\\+\\\|\[\*\/\]','\ ','g'),'\^\\s\\+','','g') 252set 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
255set splitbelow | " open new windows below the current one (i find that more intuitive) 255set 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
690Plug 'mhinz/vim-signify' | " uses the sign column to indicate added, modified and removed lines 690Plug 'mhinz/vim-signify' | " uses the sign column to indicate added, modified and removed lines
691Plug 'tpope/vim-fugitive' | " the most complete GIT integration plugin 691Plug 'tpope/vim-fugitive' | " the most complete GIT integration plugin
692Plug 'godlygeek/tabular' | " align code on a sign, like :Tab/= 692Plug 'godlygeek/tabular' | " align code on a sign, like :Tab/=
693Plug 'severin-lemaignan/vim-minimap'
694Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' 693Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with '
695let g:signify_vcs_list = [ 'git' ] | " use signify only with git (improves speed when loading buffers, see :h signify) 694let g:signify_vcs_list = [ 'git' ] | " use signify only with git (improves speed when loading buffers, see :h signify)
696let g:signify_cursorhold_insert = 0 695let 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
..