diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-04-20 10:27:00 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-04-20 10:27:00 +0100 |
commit | 0ec233f671ee4e2dee05bd7ccb7e797bc81d9626 (patch) | |
tree | 3fe9e22394d7727add4ac2948e6161f88a7c3469 /vim/mySnippets | |
parent | 2fdeb189a74a62dcf365c68f392b2367a0ca75a1 (diff) | |
parent | f45ca78f56cac187737505a00469b8268b00ede5 (diff) |
Merge branch 'master' of github.com:uvaes/dotfiles
Conflicts:
.gitignore
latexmkrc
make
mutt/muttrc
offlineimaprc
vim/mySnippets/all.snippets
vim/vimrc
Diffstat (limited to 'vim/mySnippets')
-rw-r--r-- | vim/mySnippets/all.snippets | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/vim/mySnippets/all.snippets b/vim/mySnippets/all.snippets index 9328a1e..8094025 100644 --- a/vim/mySnippets/all.snippets +++ b/vim/mySnippets/all.snippets @@ -1,3 +1,25 @@ -snippet jul "Jul the boss" -Jul is the boss of ${0:dance} +global !p +def make_comment(): + b, e = vim.eval("&commentstring").split( '%s' ) + return b, e +endglobal + +snippet todo "A universal TODO reminder" b +`!p +comment = make_comment() +snip.rv = comment[ 0 ] +` TODO: ${1:desc} (`!v $USER`, `!v strftime("%c")`) `!p +comment = make_comment() +snip.rv = comment[ 1 ]` +$0 +endsnippet + +snippet fix "A universal FIXME reminder" b +`!p +comment = make_comment() +snip.rv = comment[ 0 ] +` FIXME: ${1:desc} (`!v $USER`, `!v strftime("%c")`) `!p +comment = make_comment() +snip.rv = comment[ 1 ]` +$0 endsnippet |