mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated plugins
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
extends html
|
||||
|
||||
snippet %
|
||||
<% ${0} %>
|
||||
snippet =
|
||||
|
@ -47,28 +47,27 @@ snippet m
|
||||
{
|
||||
${0}
|
||||
}
|
||||
# setter method
|
||||
snippet sm
|
||||
snippet sm "PHP Class Setter"
|
||||
/**
|
||||
* Sets the value of ${1:foo}
|
||||
*
|
||||
* @param ${2:$1} $$1 ${3:description}
|
||||
* @param ${2:string} $$1 ${3:description}
|
||||
*
|
||||
* @return ${4:`vim_snippets#Filename()`}
|
||||
*/
|
||||
${5:public} function set${6:$2}(${7:$2 }$$1)
|
||||
${5:public} function set${6:$1}(${7:$2 }$$1)
|
||||
{
|
||||
$this->${8:$1} = $$1;
|
||||
|
||||
return $this;
|
||||
}
|
||||
# getter method
|
||||
snippet gm
|
||||
snippet gm "PHP Class Getter Setter"
|
||||
/**
|
||||
* Gets the value of ${1:foo}
|
||||
*
|
||||
* @return ${2:$1}
|
||||
* @return ${2:string}
|
||||
*/
|
||||
${3:public} function get${4:$2}()
|
||||
${3:public} function get${4:$1}()
|
||||
{
|
||||
return $this->${5:$1};
|
||||
}
|
||||
@ -391,13 +390,13 @@ snippet ve "Dumb debug helper in HTML"
|
||||
snippet pc "Dumb debug helper in cli"
|
||||
var_export($1);$0
|
||||
# Getters & Setters
|
||||
snippet gs
|
||||
snippet gs "PHP Class Getter Setter"
|
||||
/**
|
||||
* Gets the value of ${1:foo}
|
||||
*
|
||||
* @return ${2:$1}
|
||||
* @return ${2:string}
|
||||
*/
|
||||
public function get${3:$2}()
|
||||
public function get${3:$1}()
|
||||
{
|
||||
return $this->${4:$1};
|
||||
}
|
||||
|
36
sources_non_forked/vim-snippets/snippets/sass.snippets
Normal file
36
sources_non_forked/vim-snippets/snippets/sass.snippets
Normal file
@ -0,0 +1,36 @@
|
||||
extends css
|
||||
|
||||
snippet $
|
||||
$${1:variable}: ${0:value}
|
||||
snippet imp
|
||||
@import '${0}'
|
||||
snippet mix
|
||||
@mixin ${1:name}(${2})
|
||||
${0}
|
||||
snippet inc
|
||||
@include ${1:mixin}(${2})
|
||||
snippet ext
|
||||
@extend ${0}
|
||||
snippet fun
|
||||
@function ${1:name}(${2:args})
|
||||
${0}
|
||||
snippet if
|
||||
@if ${1:condition}
|
||||
${0}
|
||||
snippet ife
|
||||
@if ${1:condition}
|
||||
${2}
|
||||
@else
|
||||
${0}
|
||||
snippet eif
|
||||
@else if ${1:condition}
|
||||
${0}
|
||||
snippet for
|
||||
@for ${1:$i} from ${2:1} through ${3:3}
|
||||
${0}
|
||||
snippet each
|
||||
@each ${1:$item} in ${2:items}
|
||||
${0}
|
||||
snippet while
|
||||
@while ${1:$i} ${2:>} ${3:0}
|
||||
${0}
|
@ -16,57 +16,57 @@ snippet dmo \DeclareMathOperator
|
||||
# \begin{}...\end{}
|
||||
snippet begin \begin{} ... \end{} block
|
||||
\begin{${1:env}}
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{$1}
|
||||
# Tabular
|
||||
snippet tab tabular (or arbitrary) environment
|
||||
\begin{${1:tabular}}{${2:c}}
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{$1}
|
||||
snippet thm thm (or arbitrary) environment with optional argument
|
||||
\begin[${1:author}]{${2:thm}}
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{$2}
|
||||
snippet center center environment
|
||||
\begin{center}
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{center}
|
||||
# Align(ed)
|
||||
snippet ali align(ed) environment
|
||||
\begin{align${1:ed}}
|
||||
\label{eq:${2}}
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{align$1}
|
||||
# Gather(ed)
|
||||
snippet gat gather(ed) environment
|
||||
\begin{gather${1:ed}}
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{gather$1}
|
||||
# Equation
|
||||
snippet eq equation environment
|
||||
\begin{equation}
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{equation}
|
||||
# Equation
|
||||
snippet eql Labeled equation environment
|
||||
\begin{equation}
|
||||
\label{eq:${2}}
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{equation}
|
||||
# Equation
|
||||
snippet eq* unnumbered equation environment
|
||||
\begin{equation*}
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{equation*}
|
||||
# Unnumbered Equation
|
||||
snippet \ unnumbered equation: \[ ... \]
|
||||
\[
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\]
|
||||
# Equation array
|
||||
snippet eqnarray eqnarray environment
|
||||
\begin{eqnarray}
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{eqnarray}
|
||||
# Label
|
||||
snippet lab \label
|
||||
@ -90,7 +90,7 @@ snippet itemize itemize environment
|
||||
\item ${0}
|
||||
\end{itemize}
|
||||
snippet item \item
|
||||
\item ${1}
|
||||
\item ${1:${VISUAL}}
|
||||
# Description
|
||||
snippet desc description environment
|
||||
\begin{description}
|
||||
@ -103,18 +103,18 @@ snippet ]i \item (recursive)
|
||||
# Matrix
|
||||
snippet mat smart matrix environment
|
||||
\begin{${1:p/b/v/V/B/small}matrix}
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{$1matrix}
|
||||
# Cases
|
||||
snippet cas cases environment
|
||||
\begin{cases}
|
||||
${1:equation}, &\text{ if }${2:case}\\
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{cases}
|
||||
# Split
|
||||
snippet spl split environment
|
||||
\begin{split}
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{split}
|
||||
# Part
|
||||
snippet part document \part
|
||||
@ -203,32 +203,32 @@ snippet fcite \footcite[]{}
|
||||
\footcite[${1}]{${2}}${0}
|
||||
#Formating text: italic, bold, underline, small capital, emphase ..
|
||||
snippet it italic text
|
||||
\textit{${0:text}}
|
||||
\textit{${0:${VISUAL:text}}}
|
||||
snippet bf bold face text
|
||||
\textbf{${0:text}}
|
||||
\textbf{${0:${VISUAL:text}}}
|
||||
snippet under underline text
|
||||
\underline{${0:text}}
|
||||
\underline{${0:${VISUAL:text}}}
|
||||
snippet emp emphasize text
|
||||
\emph{${0:text}}
|
||||
\emph{${0:${VISUAL:text}}}
|
||||
snippet sc small caps text
|
||||
\textsc{${0:text}}
|
||||
\textsc{${0:${VISUAL:text}}}
|
||||
#Choosing font
|
||||
snippet sf sans serife text
|
||||
\textsf{${0:text}}
|
||||
\textsf{${0:${VISUAL:text}}}
|
||||
snippet rm roman font text
|
||||
\textrm{${0:text}}
|
||||
\textrm{${0:${VISUAL:text}}}
|
||||
snippet tt typewriter (monospace) text
|
||||
\texttt{${0:text}}
|
||||
\texttt{${0:${VISUAL:text}}}
|
||||
#Math font
|
||||
snippet mf mathfrak
|
||||
\mathfrak{${0:text}}
|
||||
\mathfrak{${0:${VISUAL:text}}}
|
||||
snippet mc mathcal
|
||||
\mathcal{${0:text}}
|
||||
\mathcal{${0:${VISUAL:text}}}
|
||||
snippet ms mathscr
|
||||
\mathscr{${0:text}}
|
||||
\mathscr{${0:${VISUAL:text}}}
|
||||
#misc
|
||||
snippet ft \footnote
|
||||
\footnote{${0:text}}
|
||||
\footnote{${0:${VISUAL:text}}}
|
||||
snippet fig figure environment (includegraphics)
|
||||
\begin{figure}
|
||||
\begin{center}
|
||||
@ -260,19 +260,19 @@ snippet lim \lim_{}
|
||||
\lim_{${1:n \to \infty}} ${0}
|
||||
snippet frame frame environment
|
||||
\begin{frame}[${1:t}]{${2:title}}
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{frame}
|
||||
snippet block block environment
|
||||
\begin{block}{${1:title}}
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{block}
|
||||
snippet alert alertblock environment
|
||||
\begin{alertblock}{${1:title}}
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{alertblock}
|
||||
snippet example exampleblock environment
|
||||
\begin{exampleblock}{${1:title}}
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{exampleblock}
|
||||
snippet col2 two-column environment
|
||||
\begin{columns}
|
||||
@ -301,7 +301,7 @@ snippet lra langle rangle
|
||||
# Code listings
|
||||
snippet lst
|
||||
\begin{listing}[language=${1:language}]
|
||||
${0}
|
||||
${0:${VISUAL}}
|
||||
\end{listing}
|
||||
snippet lsi
|
||||
\lstinline|${1}| ${0}
|
||||
|
Reference in New Issue
Block a user