diff options
author | Karel Kočí <cynerd@email.cz> | 2016-06-30 16:11:56 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2016-06-30 16:11:56 +0200 |
commit | 9931e0888b2419326ae10ebbfae532261c5c125f (patch) | |
tree | 7504be5daccbb7b7d1ea396754de47b11ed790e5 /vim/bundle/vim-snippets/UltiSnips/all.snippets | |
parent | e573b3020c032400eed60b649a2cbf55266e6bb0 (diff) | |
download | myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.gz myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.bz2 myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.zip |
Fix submodules
Diffstat (limited to 'vim/bundle/vim-snippets/UltiSnips/all.snippets')
m--------- | vim/bundle/vim-snippets | 0 | ||||
-rw-r--r-- | vim/bundle/vim-snippets/UltiSnips/all.snippets | 76 |
2 files changed, 0 insertions, 76 deletions
diff --git a/vim/bundle/vim-snippets b/vim/bundle/vim-snippets new file mode 160000 +Subproject 15d7e5ec26ec93adee4051b6359be90a943aa38 diff --git a/vim/bundle/vim-snippets/UltiSnips/all.snippets b/vim/bundle/vim-snippets/UltiSnips/all.snippets deleted file mode 100644 index 0e286e5..0000000 --- a/vim/bundle/vim-snippets/UltiSnips/all.snippets +++ /dev/null @@ -1,76 +0,0 @@ -# This file contains snippets that are always defined. I personally -# have snippets for signatures and often needed texts - -# sligthly lower priority than everything else since specialized versions -# should overwrite. The user needs to adjust her priority in her snippets to -# ~-55 so that other filetypes will still overwrite. -priority -60 - -############## -# NICE BOXES # -############## -global !p -from vimsnippets import foldmarker, make_box, get_comment_format -endglobal - -snippet box "A nice box with the current comment symbol" b -`!p -box = make_box(len(t[1])) -snip.rv = box[0] -snip += box[1] -`${1:content}`!p -box = make_box(len(t[1])) -snip.rv = box[2] -snip += box[3]` -$0 -endsnippet - -snippet bbox "A nice box over the full width" b -`!p -if not snip.c: - width = int(vim.eval("&textwidth - (virtcol('.') == 1 ? 0 : virtcol('.'))")) or 71 -box = make_box(len(t[1]), width) -snip.rv = box[0] -snip += box[1] -`${1:content}`!p -box = make_box(len(t[1]), width) -snip.rv = box[2] -snip += box[3]` -$0 -endsnippet - -snippet fold "Insert a vim fold marker" b -`!p snip.rv = get_comment_format()[0]` ${1:Fold description} `!p snip.rv = foldmarker()[0]`${2:1} `!p snip.rv = get_comment_format()[2]` -endsnippet - -snippet foldc "Insert a vim fold close marker" b -`!p snip.rv = get_comment_format()[0]` ${2:1}`!p snip.rv = foldmarker()[1]` `!p snip.rv = get_comment_format()[2]` -endsnippet - -snippet foldp "Insert a vim fold marker pair" b -`!p snip.rv = get_comment_format()[0]` ${1:Fold description} `!p snip.rv = foldmarker()[0]` `!p snip.rv = get_comment_format()[2]` -${2:${VISUAL:Content}} -`!p snip.rv = get_comment_format()[0]` `!p snip.rv = foldmarker()[1]` $1 `!p snip.rv = get_comment_format()[2]` -endsnippet - -########################## -# LOREM IPSUM GENERATORS # -########################## -snippet lorem "Lorem Ipsum - 50 Words" b -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod -tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At -vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, -no sea takimata sanctus est Lorem ipsum dolor sit amet. -endsnippet - -########################## -# VIM MODELINE GENERATOR # -########################## -# See advice on `:help 'tabstop'` for why these values are set. Uses second -# modeline form ('set') to work in languages with comment terminators -# (/* like C */). -snippet modeline "Vim modeline" -vim`!v ':set '. (&expandtab ? printf('et sw=%i ts=%i', &sw, &ts) : printf('noet sts=%i sw=%i ts=%i', &sts, &sw, &ts)) . (&tw ? ' tw='. &tw : '') . ':'` -endsnippet - -# vim:ft=snippets: |