New answers tagged vim-windows
3
I don't like using windo that could trigger events if done without any caution, and thus I prefer using programmatic ways instead.
For instance, we can obtain the window numbers of the windows in diff mode with
:echo filter(range(1, winnr('$')), 'getwinvar(v:val, "&diff") == 1')
1
I was mapping two commands to one F-key to execute 2 plugin commands and none of the above worked for me.
The only option that worked for me was with to <CR>:
nnoremap <F10> :Doctest <CR> :lwindow<CR>
Top 50 recent answers are included
Related Tags
vim-windows × 219buffers × 34
split × 31
vimrc × 17
key-bindings × 17
vimscript × 17
tabbed-user-interface × 15
gvim × 14
neovim × 10
plugin-nerdtree × 10
window-management × 8
terminal × 6
terminal-buffer × 6
autocmd × 5
microsoft-windows × 5
colorscheme × 5
netrw × 5
command-line × 4
plugin-system × 4
functions × 4
macvim × 4
scrolling × 4
help-system × 4
normal-mode × 3
external-command × 3