mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-28 01:12:34 +01:00
fixed objc/cpp command-based snippets
This commit is contained in:
@@ -2,8 +2,7 @@ if !exists('loaded_snips') || exists('s:did_tex_snips')
|
||||
fini
|
||||
en
|
||||
let s:did_tex_snips = 1
|
||||
let ft = &ft
|
||||
let &ft = 'tex'
|
||||
let snippet_filetype = 'tex'
|
||||
|
||||
" \begin{}...\end{}
|
||||
exe "Snipp begin \\begin{${1:env}}\n\t${2}\n\\end{$1}"
|
||||
@@ -49,5 +48,3 @@ exe 'Snipp table ${1:Table}~\ref{${2:tab:}}${3}'
|
||||
exe 'Snipp listing ${1:Listing}~\ref{${2:list}}${3}'
|
||||
exe 'Snipp section ${1:Section}~\ref{${2:sec:}}${3}'
|
||||
exe 'Snipp page ${1:page}~\pageref{${2}}${3}'
|
||||
|
||||
let &ft = ft
|
||||
|
||||
Reference in New Issue
Block a user