This one’s in Lua because I use Neovim, but it should be directly translatable to VimScript. I often need to rerun the same commands in a specific buffer. For example, I might regularly run one command to expand an XML metafile, and then another to run one of the expanded outputs. functionLoadLocal(local_cmd)vim.b.local_cmd=local_cmdendfunctionRunLocal()vim.cmd(vim.b.local_cmd)endvim.cmd[[command! -nargs=1 LoadLocal call v:lua.LoadLocal(<f-args>)]]vim.keymap.set('n','gxl',RunLocal,{silent=t...