Last active
August 29, 2015 14:05
-
-
Save todashuta/7ced70029fe36a8b9fb5 to your computer and use it in GitHub Desktop.
Faster vimgrep
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " BufRead イベントを一時的に無効にして vimgrep の所要時間を通常の約三分の一にする | |
| " 注意: 圧縮されたファイルを読むようなプラグインが動作しなくなるという副作用がある | |
| augroup faster-vimgrep | |
| autocmd! | |
| autocmd QuickFixCmdPre *vimgrep* | |
| \ let s:save_eventignore = &eventignore | |
| \ | set eventignore=BufRead | |
| autocmd QuickFixCmdPost *vimgrep* | |
| \ let &eventignore = s:save_eventignore | |
| \ | unlet s:save_eventignore | |
| augroup END |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
で十分ということになった