From d009b280d27991bba1fe21e1a8c566e60b2a6b86 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Wed, 17 Apr 2013 23:07:55 +0200 Subject: [PATCH] vim: use snipmate, remove hand-made tex snippets --- dotfiles/vim/.vim/snippets/tex.snippets | 7 +++++++ dotfiles/vim/.vimrc | 10 +--------- 2 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 dotfiles/vim/.vim/snippets/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 = [''] -- 2.39.5