When I work with vim, I sometimes get a split menu setting like this:
Even when the tagbar is closed, I can get a comparable setting, for example, when I compare different files.
However, when I execute the vimgrep command, the results (displayed in the quick list) are displayed only under the main window when the tagbar (or other splits on the right) are closed.
Therefore, this setting works correctly every time:
#
# |
# |
# NERDTree | main window
# |
# |
# |__________________________________
# |
# | quickfix list: vimgrep results
# |
#
... while it is not:
#
# | |
# | |
# NERDTree | main window | tagbar
# | |
# | |________
# | | quick-
# | | fix
# | | list:
# | | vimgrep
# | | results
#
How can I make the quickfix list always open (containing vimgrep results) under the main window ?
( ), - - .
- , vimgrep quickfix:/
, , vimgrep ( ):
nnoremap some-key :execute "vimgrep /\\<" . expand("<cword>") . "\\>/j ".expand("%") <Bar> cw<CR>
... , vimgrep.