dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 6e6758802443f5cb2f1dbc48d86c453ee919e2d4
parent 25c4a0490666aa5fcf67ee8a87d7c9b9278f5c28
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Mon, 10 Feb 2020 12:51:00 +0100

vim: compiler definition snippet

Former-commit-id: 3b10df63e63ed9283b116800bea54659c9defaab
Diffstat:
Mvim/ultisnips/vim.snippets | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/vim/ultisnips/vim.snippets b/vim/ultisnips/vim.snippets @@ -5,3 +5,13 @@ else let b:undo_ftplugin = '| $1' endif endsnippet +snippet compiler "Compiler boilerplate" b +if exists("current_compiler") + finish +endif +let current_compiler = "${1:compiler name}" +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif +CompilerSet makeprg=$0 +endsnippet