first commit

This commit is contained in:
kdav5758
2021-07-01 16:55:41 -05:00
parent 969be18e92
commit 2c8790b006
11 changed files with 282 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
local api = vim.api
-- original source: https://vim.fandom.com/wiki/Run_a_command_in_multiple_buffers
-- like bufdo but restore the current buffer.
api.nvim_exec(
[[
function! g:AutoSaveBufDo(command)
let currBuff=bufnr("%")
execute 'bufdo ' . a:command
execute 'buffer ' . currBuff
endfunction
com! -nargs=+ -complete=command Bufdo call BufDo(<q-args>)
]],
false
)