From c9ddf17afd26354a8a2504f99cbd49f115964e55 Mon Sep 17 00:00:00 2001 From: JuanPablo Date: Tue, 30 Aug 2011 01:57:47 -0300 Subject: [PATCH] vim snippet : try --- snippets/vim.snippets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/snippets/vim.snippets b/snippets/vim.snippets index 07603c8..4b74f4e 100644 --- a/snippets/vim.snippets +++ b/snippets/vim.snippets @@ -12,6 +12,12 @@ snippet f fun! ${1:`expand('%') =~ 'autoload' ? substitute(matchstr(expand('%:p'),'autoload/\zs.*\ze.vim'),'[/\\]','#','g').'#' : ''`}${2:function_name}(${3}) ${4:" code} endf +snippet t + try + ${1} + catch ${2} + ${3} + endtry snippet for for ${1:needle} in ${2:haystack} ${3:" code}