From: Stefan Huber Date: Wed, 17 Apr 2013 21:07:55 +0000 (+0200) Subject: vim: use snipmate, remove hand-made tex snippets X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=d009b280d27991bba1fe21e1a8c566e60b2a6b86;p=shutils.git vim: use snipmate, remove hand-made tex snippets --- diff --git a/dotfiles/vim/.vim/snippets/tex.snippets b/dotfiles/vim/.vim/snippets/tex.snippets new file mode 100644 index 0000000..724adaa --- /dev/null +++ b/dotfiles/vim/.vim/snippets/tex.snippets @@ -0,0 +1,7 @@ +# Figure +snippet fig + \begin{figure}[${4:tbh}] + \includegraphics{${1:figs/}} + \caption{${2}} + \label{${3:fig:}} + \end{figure} diff --git a/dotfiles/vim/.vimrc b/dotfiles/vim/.vimrc index af9b51b..27e8d3f 100644 --- a/dotfiles/vim/.vimrc +++ b/dotfiles/vim/.vimrc @@ -233,14 +233,6 @@ let g:LatexBox_latexmk_options="-pvc" au Filetype tex set smartindent -au Filetype tex map! ,b \begin{}i -au Filetype tex map! ,e :call TexClosePrev(0)a -au Filetype tex map! ,i \begin{itemize}\end{itemize}O\item -au Filetype tex map! ,f \begin{frame}\end{frame}O\frametitle{ -au Filetype tex map! ,p \begin{figure}\end{figure}O\centering\includegraphics{ - - - if version >= 700 au Filetype tex set spell endif @@ -286,7 +278,7 @@ au Filetype gnuplot map :call OpenIn("gnuplot -persist") """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" let g:ycm_min_num_of_chars_for_completion = 999 - +let g:ycm_key_list_select_completion = ['']