• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révisionfa17885fdc26b5e0438751e6f954a64aa0dee730 (tree)
l'heure2022-05-09 04:46:12
Auteurbadcoff33 <none@none>
Commiterbadcoff33

Message de Log

grep/make tuning

Change Summary

Modification

--- a/vimrc
+++ b/vimrc
@@ -167,6 +167,8 @@ nnoremap <A-i> :bnext<CR>
167167 " command line
168168 cnoremap <expr> <A-.> expand("%:h")..g:path_sep
169169 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'
170172
171173 " Expand abbreviations (without trailing space)
172174 imap <C-CR> <C-]>
@@ -245,10 +247,13 @@ command! -nargs=0 SC :set ignorecase smartcase
245247
246248 augroup init
247249 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
252257 augroup END
253258
254259 let g:term = &term