This commit is contained in:
TheK4n 2022-08-03 18:52:52 +03:00
parent f5fe0656a0
commit 12e0e9f3ef

View File

@ -20,6 +20,19 @@ function! TabDo(command)
execute 'tabn ' . currTab
endfunction
" like bufdo but restore the current buffer
function! BufDo(command)
let currBuff=bufnr("%")
execute 'bufdo ' . a:command
execute 'buffer ' . currBuff
endfunction
" like windo but restore the current window
function! WinDo(command)
let currwin=winnr()
execute 'windo ' . a:command
execute currwin . 'wincmd w'
endfunction
nnoremap <silent> <Leader>c :call TabDo('set cursorline!') <CR>
inoremap jk <esc>