" Run `command` in all windows, keeping old open window.
function! lsc#util#winDo(command) abort
  let current_window = winnr()
  execute 'windo ' . a:command
  execute current_window . 'wincmd w'
endfunction

" Run `command` in all windows, keeping old open window.
function! lsc#util#winDo(command) abort
  let current_window = winnr()
  execute 'keepjumps noautocmd windo '.a:command
  execute 'keepjumps noautocmd '.current_window.'wincmd w'
endfunction

Add keepjumps and noautocmd to WinDo
Add keepjumps and noautocmd to WinDo

- keepjumps prevents polluting the jumplist on each navigation to an
  enabled filetype file. Without this getting back requires two presses
  ctrl-o and there are annoying cycles in the jumps.
- noautocmd potentially speeds things up by avoiding additional work
  when the file will be left immediately anyway

natebosch/vim-lsc,natebosch/vim-lsc