1
0
mirror of https://github.com/amix/vimrc synced 2025-06-16 09:35:01 +08:00

Updated plugins

This commit is contained in:
Amir Salihefendic
2019-08-22 17:36:17 +02:00
parent 6711ae6453
commit 3aefdbd21a
244 changed files with 9486 additions and 3395 deletions

View File

@ -333,6 +333,10 @@ snippet mailto "HTML <a mailto: >" w
<a href="mailto:${1:joe@example.com}?subject=${2:feedback}">${3:email me}</a>
endsnippet
snippet tel "HTML <a tel: >" w
<a href="tel:+${1:XX1234567890}">${2:call me}</a>
endsnippet
snippet main "<main>"
<main>
${1:main content}

View File

@ -1,6 +1,6 @@
priority -50
snippet #! "shebang"
snippet #! "#!/usr/bin/env node" b
#!/usr/bin/env node
endsnippet

View File

@ -3,7 +3,7 @@ priority -50
#################################
# Snippets for the Lua language #
#################################
snippet #! "Shebang header" b
snippet #! "#!/usr/bin/env lua" b
#!/usr/bin/env lua
$0
endsnippet

View File

@ -5,8 +5,12 @@ priority -50
###########################################################################
#! header
snippet #! "Shebang header for python scripts" b
snippet #! "#!/usr/bin/env python" b
#!/usr/bin/env python
$0
endsnippet
snippet "^# ?[uU][tT][fF]-?8" "# encoding: UTF-8" r
# -*- coding: utf-8 -*-
$0
endsnippet
@ -267,7 +271,7 @@ class ${1:MyClass}(${2:object}):
`!p snip.rv = triple_quotes(snip)`${3:Docstring for $1. }`!p snip.rv = triple_quotes(snip)`
def __init__(self$4):
`!p snip.rv = triple_quotes(snip)`${5:TODO: to be defined1.}`!p
`!p snip.rv = triple_quotes(snip)`${5:TODO: to be defined.}`!p
snip.rv = ""
snip >> 2

View File

@ -15,8 +15,9 @@ FIELD_TYPES = [
'vector']
endglobal
snippet #! "Hashbang for Rscript (#!)" b
snippet #! "#!/usr/bin/env Rscript" b
#!/usr/bin/env Rscript
$0
endsnippet
snippet setwd "Set workingdir" b

View File

@ -21,7 +21,7 @@ endglobal
# Snippets
#
snippet "^#!" "#!/usr/bin/env ruby" r
snippet #! "#!/usr/bin/env ruby" b
#!/usr/bin/env ruby
$0
endsnippet

View File

@ -25,12 +25,8 @@ endglobal
###########################################################################
# TextMate Snippets #
###########################################################################
snippet #!
`!p snip.rv = '#!/bin/' + getShell() + "\n\n" `
endsnippet
snippet !env "#!/usr/bin/env (!env)"
`!p snip.rv = '#!/usr/bin/env ' + getShell() + "\n\n" `
snippet #! "#!/usr/bin/env (!env)" b
`!p snip.rv = '#!/usr/bin/env ' + getShell() + "\n" `
endsnippet
snippet sbash "safe bash options"

View File

@ -85,7 +85,7 @@ snippet fig "Figure environment" b
\begin{figure}[${2:htpb}]
\centering
\includegraphics[width=${3:0.8}\linewidth]{${4:name.ext}}
\caption{${4/(\w+)\.\w+/\u$1/}$0}
\caption{${4/(\w+)\.\w+/\u$1/}$0}%
\label{fig:${4/(\w+)\.\w+/$1/}}
\end{figure}
endsnippet

View File

@ -4,14 +4,9 @@ extends sh
priority -49
snippet #! "shebang" b
#!/bin/zsh
endsnippet
snippet !env "#!/usr/bin/env (!env)" b
snippet #! "#!/usr/bin/env zsh" b
#!/usr/bin/env zsh
$0
endsnippet
# vim:ft=snippets: