New answers tagged


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')


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