Révision | fa17885fdc26b5e0438751e6f954a64aa0dee730 (tree) |
---|---|
l'heure | 2022-05-09 04:46:12 |
Auteur | badcoff33 <none@none> |
Commiter | badcoff33 |
grep/make tuning
@@ -167,6 +167,8 @@ nnoremap <A-i> :bnext<CR> | ||
167 | 167 | " command line |
168 | 168 | cnoremap <expr> <A-.> expand("%:h")..g:path_sep |
169 | 169 | cnoremap <expr> <A-,> $USERPROFILE..g:path_sep..'vimfiles'..g:path_sep |
170 | +cnoreabbrev <expr> grep (getcmdtype() ==# ':' && getcmdline() =~# '^grep') ? 'silent grep' : 'grep' | |
171 | +cnoreabbrev <expr> make (getcmdtype() ==# ':' && getcmdline() =~# '^make') ? 'silent make' : 'make' | |
170 | 172 | |
171 | 173 | " Expand abbreviations (without trailing space) |
172 | 174 | imap <C-CR> <C-]> |
@@ -245,10 +247,13 @@ command! -nargs=0 SC :set ignorecase smartcase | ||
245 | 247 | |
246 | 248 | augroup init |
247 | 249 | autocmd! |
248 | - autocmd BufEnter * if &pvw | setlocal nonu nornu | endif | |
249 | - autocmd VimEnter * execute "colorscheme "..( (&term == "builtin_gui") ? "twotone" : "apollo" ) | |
250 | - " Reload changed buffers. Command rely on 'autoread'. FocusedGained works only on same terminals | |
251 | - autocmd BufEnter * :checktime | |
250 | + " Reload changed buffers. Command rely on 'autoread'. FocusedGained works | |
251 | + " only on same terminals | |
252 | + autocmd BufEnter * checktime | |
253 | + autocmd BufEnter * if &pvw | setlocal nonu nornu | endif | |
254 | + autocmd VimEnter * execute "colorscheme "..( (&term == "builtin_gui") ? "twotone" : "apollo" ) | |
255 | + autocmd QuickFixCmdPost make cwindow | |
256 | + autocmd QuickFixCmdPost grep copen | |
252 | 257 | augroup END |
253 | 258 | |
254 | 259 | let g:term = &term |