From 334cabc5ab5b56bf4646790e048f395dcf924352 Mon Sep 17 00:00:00 2001 From: katherine Date: Thu, 5 Aug 2021 16:59:02 -0700 Subject: ultisnips -> snipmate no python dependency --- .vim/UltiSnips/c.snippets | 37 -------- .vim/UltiSnips/crystal.snippets | 16 ---- .vim/UltiSnips/elixir.snippets | 7 -- .vim/UltiSnips/go.snippets | 9 -- .vim/UltiSnips/html.snippets | 189 ---------------------------------------- .vimrc | 13 +-- 6 files changed, 7 insertions(+), 264 deletions(-) delete mode 100644 .vim/UltiSnips/c.snippets delete mode 100644 .vim/UltiSnips/crystal.snippets delete mode 100644 .vim/UltiSnips/elixir.snippets delete mode 100644 .vim/UltiSnips/go.snippets delete mode 100644 .vim/UltiSnips/html.snippets diff --git a/.vim/UltiSnips/c.snippets b/.vim/UltiSnips/c.snippets deleted file mode 100644 index 3fcf3a3..0000000 --- a/.vim/UltiSnips/c.snippets +++ /dev/null @@ -1,37 +0,0 @@ -priority -50 - -snippet ndf "#ifndef ... #define ... #endif" -#ifndef ${1/([A-Za-z0-9_]+).*/$1/} -#define ${1:SYMBOL} val -#endif -endsnippet - -snippet main "main() (main)" -int main(int argc, char **argv) -{ - ${VISUAL}$0 - return 0; -} -endsnippet - -snippet ig "include guard" -`!p -if not snip.c: - name = re.sub(r'[^A-Za-z0-9]+','_', fn).upper() - fpath = os.path.abspath(path) - val = '' - if (os.path.basename(os.path.dirname(fpath)) == 'src'): - dname = os.path.dirname(os.path.dirname(fpath)) - dname = os.path.basename(dname) - dname = re.sub(r'[^A-Za-z0-9]+','_', dname).upper() - val = ('%s_%s' % (dname,name)) - else: - val = name - snip.rv = '#ifndef ' + val + '\n#define ' + val -else: - snip.rv = snip.c` - -${VISUAL}$0 - -#endif -endsnippet diff --git a/.vim/UltiSnips/crystal.snippets b/.vim/UltiSnips/crystal.snippets deleted file mode 100644 index 7e172d6..0000000 --- a/.vim/UltiSnips/crystal.snippets +++ /dev/null @@ -1,16 +0,0 @@ -priority -50 - -snippet mod "module ... end" -module ${VISUAL}$0 -end -endsnippet - -snippet class "module ... end" -class ${VISUAL}$0 -end -endsnippet - -snippet def "def ... end" -def ${VISUAL}$0 -end -endsnippet diff --git a/.vim/UltiSnips/elixir.snippets b/.vim/UltiSnips/elixir.snippets deleted file mode 100644 index 6c90508..0000000 --- a/.vim/UltiSnips/elixir.snippets +++ /dev/null @@ -1,7 +0,0 @@ -priority -50 - -snippet do "do ... end" -do - ${VISUAL}$0 -end -endsnippet diff --git a/.vim/UltiSnips/go.snippets b/.vim/UltiSnips/go.snippets deleted file mode 100644 index be1d61f..0000000 --- a/.vim/UltiSnips/go.snippets +++ /dev/null @@ -1,9 +0,0 @@ -priority -50 - -snippet main "main() (main)" -package main - -func main() { - ${VISUAL}$0 -} -endsnippet diff --git a/.vim/UltiSnips/html.snippets b/.vim/UltiSnips/html.snippets deleted file mode 100644 index 73983a7..0000000 --- a/.vim/UltiSnips/html.snippets +++ /dev/null @@ -1,189 +0,0 @@ -priority -50 - -global !p -def x(snip): - if snip.ft.startswith("x"): - snip.rv = '/' - else: - snip.rv = "" -endglobal - -snippet doctype "HTML - 5.0 (doctype)" b - - -endsnippet - -snippet a "Link" w -${4:Anchor Text} -endsnippet - -snippet abbr "" w -$1 -endsnippet - -snippet address "
" w -
$1
-endsnippet - -snippet article "
" -
- ${1:article content} -
-endsnippet - -snippet aside "