Skip to content

Instantly share code, notes, and snippets.

@igrep
Last active November 11, 2020 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igrep/d0f400e35e80ad4cdb01 to your computer and use it in GitHub Desktop.
Save igrep/d0f400e35e80ad4cdb01 to your computer and use it in GitHub Desktop.
vim-watchdogsでエラーをquickfix listに出した後、カーソルをquickfix listのウィンドウに移動させない ref: http://qiita.com/igrep/items/e5d288f42d9abb23e4c1
function! GoToPreviousWindowWhenQf() abort
if &filetype == 'qf'
wincmd p
endif
endfunction
let g:quickrun_config = {
\ "_": {
\ "outputter/quickfix/open_cmd" : "cwindow | call GoToPreviousWindowWhenQf()"
\ },
\ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment