aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vimrc-full46
1 files changed, 27 insertions, 19 deletions
diff --git a/vimrc-full b/vimrc-full
index 9d0e605..f0bcea8 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -994,7 +994,7 @@ function! ExtendColorTheme()
994 " highlight! link TabLine LineNr 994 " highlight! link TabLine LineNr
995 " highlight! TabLineSel ctermbg=blue ctermfg=black 995 " highlight! TabLineSel ctermbg=blue ctermfg=black
996 " highlight! link TabLineFill LineNr 996 " highlight! link TabLineFill LineNr
997 highlight! Search ctermbg=LightYellow ctermfg=black guibg=#fefd86 guifg=#222222 997 highlight! Search ctermbg=LightYellow ctermfg=12 guibg=#fefd86 guifg=#222222
998 highlight! link WildMenu Search 998 highlight! link WildMenu Search
999 999
1000 " generic, which should exist but don't 1000 " generic, which should exist but don't
@@ -1043,23 +1043,6 @@ autocmd! ColorScheme * call ExtendColorTheme()
1043" ====================================================================================================================== 1043" ======================================================================================================================
1044" CONVENIENCE: 1044" CONVENIENCE:
1045" ====================================================================================================================== 1045" ======================================================================================================================
1046if empty(argv())
1047
1048 " autocmd VimEnter * call setloclist(0, filter(map(copy(v:oldfiles), {_, p->{'filename': expand(get(split(p, "'"), 0))}}), { val -> echo val}))
1049
1050 " from the list of recent files: make absolute paths, filter out files not
1051 " contained in cwd and finally filter out directories and non-files...
1052 autocmd StdinReadPre * let s:std_in=1
1053 autocmd VimEnter * if !exists("s:std_in") | call setloclist(0, [], 'r',
1054 \ {
1055 \ 'title':'Recently used files in directory: '.getcwd(),
1056 \ 'items':map(filter(filter(
1057 \ map(copy(v:oldfiles),
1058 \ {_, p->expand(p)}), 'v:val =~ "'.getcwd().'/"'), 'filereadable(v:val)'),
1059 \ {_, p->{'filename': fnamemodify(p, ':.')}})
1060 \ }) | lopen | only
1061endif
1062
1063command Vimls 1046command Vimls
1064 \ call setloclist(0, map(getbufinfo({'buflisted':1}), 1047 \ call setloclist(0, map(getbufinfo({'buflisted':1}),
1065 \ "{'bufnr': v:val.bufnr, 1048 \ "{'bufnr': v:val.bufnr,
@@ -1092,6 +1075,11 @@ nnoremap Q !!$SHELL<CR>
1092" silent autocmd VimEnter * nested :silent bun 1075" silent autocmd VimEnter * nested :silent bun
1093" endif 1076" endif
1094 1077
1078autocmd TextYankPost * echo '> text yanked to '.(
1079 \ get(v:event,'regname') == ''
1080 \ ? 'default register'
1081 \ : 'register '.get(v:event,'regname'))
1082
1095autocmd VimEnter,WinEnter * exec ':set scrolljump='.winheight(0)/2 1083autocmd VimEnter,WinEnter * exec ':set scrolljump='.winheight(0)/2
1096 1084
1097" display highlight group under the cursor 1085" display highlight group under the cursor
@@ -1178,7 +1166,7 @@ augroup status
1178 \ ."%{(argc()>0\ ?\ argidx()+1.':'.argc().' '.g:status_sym_sep_start.' '\ :\ '')}" 1166 \ ."%{(argc()>0\ ?\ argidx()+1.':'.argc().' '.g:status_sym_sep_start.' '\ :\ '')}"
1179 \ ."%{winbufnr(0).' '.g:status_sym_sep_start}" 1167 \ ."%{winbufnr(0).' '.g:status_sym_sep_start}"
1180 \ ."%{(&readonly\ ?\ '\ \ \ '\ :\ '')}" 1168 \ ."%{(&readonly\ ?\ '\ \ \ '\ :\ '')}"
1181 \ ."%{(&modified\ ?\ nr2char(0xF0C7).'\ '\ :\ '')\ }" 1169 \ ."%{(&modified\ ?\ '\ \ '.nr2char(0xF0C7).'\ '\ :\ '')\ }"
1182 \ ."%{(haslocaldir() ?\ ' '.fnamemodify(getcwd(),\ ':.').' '.nr2char(0xe0b1)\ \:\ '')}\ " 1170 \ ."%{(haslocaldir() ?\ ' '.fnamemodify(getcwd(),\ ':.').' '.nr2char(0xe0b1)\ \:\ '')}\ "
1183 \ ."%{(&buftype\ ==\ \"terminal\"\ ?\ b:term_title\ :\ substitute(expand('%:p'),\ '^'.getcwd(-1).'/*',\ '',\ ''))\ }" 1171 \ ."%{(&buftype\ ==\ \"terminal\"\ ?\ b:term_title\ :\ substitute(expand('%:p'),\ '^'.getcwd(-1).'/*',\ '',\ ''))\ }"
1184 \ ."%1(%)" 1172 \ ."%1(%)"
@@ -1242,3 +1230,23 @@ augroup status
1242 autocmd WinEnter * setlocal statusline=%!UpdateStatus(g:group_active) 1230 autocmd WinEnter * setlocal statusline=%!UpdateStatus(g:group_active)
1243 autocmd WinLeave * setlocal statusline< 1231 autocmd WinLeave * setlocal statusline<
1244augroup END " status 1232augroup END " status
1233
1234" moved after VimEnter of statusline, so that it does not get overwritten any
1235" more
1236if empty(argv())
1237
1238 " autocmd VimEnter * call setloclist(0, filter(map(copy(v:oldfiles), {_, p->{'filename': expand(get(split(p, "'"), 0))}}), { val -> echo val}))
1239
1240 " from the list of recent files: make absolute paths, filter out files not
1241 " contained in cwd and finally filter out directories and non-files...
1242 autocmd StdinReadPre * let s:std_in=1
1243 autocmd VimEnter * if !exists("s:std_in") | call setloclist(0, [], 'r',
1244 \ {
1245 \ 'title':'Recently used files in directory: '.getcwd(),
1246 \ 'items':map(filter(filter(
1247 \ map(copy(v:oldfiles),
1248 \ {_, p->expand(p)}), 'v:val =~ "'.getcwd().'/"'), 'filereadable(v:val)'),
1249 \ {_, p->{'filename': fnamemodify(p, ':.')}})
1250 \ }) | lopen | only | setfiletype qf
1251endif
1252
..