]> git.sthu.org Git - shutils.git/commitdiff
vim: use snipmate, remove hand-made tex snippets
authorStefan Huber <shuber@sthu.org>
Wed, 17 Apr 2013 21:07:55 +0000 (23:07 +0200)
committerStefan Huber <shuber@sthu.org>
Wed, 17 Apr 2013 21:07:55 +0000 (23:07 +0200)
dotfiles/vim/.vim/snippets/tex.snippets [new file with mode: 0644]
dotfiles/vim/.vimrc

diff --git a/dotfiles/vim/.vim/snippets/tex.snippets b/dotfiles/vim/.vim/snippets/tex.snippets
new file mode 100644 (file)
index 0000000..724adaa
--- /dev/null
@@ -0,0 +1,7 @@
+# Figure
+snippet fig
+       \begin{figure}[${4:tbh}]
+               \includegraphics{${1:figs/}}
+               \caption{${2}}
+               \label{${3:fig:}}
+       \end{figure}
index af9b51be3c89a7c1334a02648884609cc40b8198..27e8d3fcde19493b1ff910d573d23f55ada1ead1 100644 (file)
@@ -233,14 +233,6 @@ let g:LatexBox_latexmk_options="-pvc"
 
 au Filetype tex set smartindent
 
-au Filetype tex map! ,b \begin{}<Esc>i
-au Filetype tex map! ,e <esc>:call TexClosePrev(0)<cr>a<cr>
-au Filetype tex map! ,i \begin{itemize}<Return>\end{itemize}<ESC>O\item 
-au Filetype tex map! ,f \begin{frame}<Return>\end{frame}<ESC>O\frametitle{
-au Filetype tex map! ,p \begin{figure}<Return>\end{figure}<ESC>O\centering<Return>\includegraphics{
-
-
-
 if version >= 700
        au Filetype tex set spell
 endif
@@ -286,7 +278,7 @@ au Filetype gnuplot map <M-o> :call OpenIn("gnuplot -persist") <CR>
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 
 let g:ycm_min_num_of_chars_for_completion = 999
-
+let g:ycm_key_list_select_completion = ['<Down>']