vim windows - RawIron/rawiron.github.io GitHub Wiki

  • tool windows: scratch, preview, quickfix, help, loclist, errors
  • editor windows (buffers?)
  • plugin windows: tagbar, nerdtree

configure

" visual autocomplete for command menu
set wildmenu

" jump to first open window that contains buffer
set switchbuf+=useopen

resize

all windows to equal size

ctrl-w-=

maximize current window

usually just temporarily for example maximize help window to read the help text of syntastic

ctrl-w-_

it is not possible to restore the previous size of the window. for example in terminator this is done with:

ctrl-a-x

tool windows

preview window (scratch window)

https://vi.stackexchange.com/questions/4056/is-there-an-easy-way-to-close-a-scratch-buffer-preview-window

ctrl-w-z
:pc[lose]

nnoremap <leader>pc :pclose<CR>

quickfix window

:ccl[ose]
:cope[n]

nnoremap <ctrl-w-q> :cclose<CR>
nnoremap <leader>cc :cclose<CR>
nnoremap <leader>co :copen<CR>

help window

nnoremap <leader>h :help
nnoremap <leader>hc :helpclose<CR>

errors window

tool window which lists all the errors reported by syntastic

nnoremap <leader>eo :Errors<CR>
nnoremap <leader>ec :SyntasticReset<CR>

tagbar plugin window

nnoremap <leader>t :TagbarOpenAutoClose<CR>
nnoremap <leader>tc :TagbarClose<CR>

collapse or expand all

*
=
⚠️ **GitHub.com Fallback** ⚠️