dotfiles/notes/vim/vim_backtick_expansion.md
2022-09-07 22:24:18 -06:00

407 B

Vim backtick expansion

:h backtick-expansion

Essentially allows command substitution with shell or vim commands. Requires a lot of escaping special symbols though

:e `mktemp`
:e `=tempname()`

Edit a new temporary file. Very useful in gui contexts when you just quickly need to jot something down. The equal sign in the second line expands a vim function instead of calling a shell