From bc122006316321e4866504dc392c9dbeb87b109d Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Mon, 13 Apr 2015 07:24:44 +0200 Subject: [PATCH] vim: Update vimrc --- dotfiles/vim/.vimrc | 41 +++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/dotfiles/vim/.vimrc b/dotfiles/vim/.vimrc index 62ca06d..b657226 100644 --- a/dotfiles/vim/.vimrc +++ b/dotfiles/vim/.vimrc @@ -110,10 +110,10 @@ map NERDCommenterToggle nmap :NERDTreeToggle nmap :TagbarToggle -nmap :q -nmap :w -vmap gv -imap +"nmap :q +"nmap :w +"vmap gv +"imap """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -129,13 +129,13 @@ au Filetype fortran set cindent cst csto=0 " C, C++, C#, objc, java """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -au Filetype c,cpp,cs,objc,java map :cnext -au Filetype c,cpp,cs,objc,java map :cprevious -au Filetype c,cpp,cs,objc,java map :AS -au Filetype c,cpp,cs,objc,java map :A +au Filetype c,cpp,cs,objc,java map :cnext +au Filetype c,cpp,cs,objc,java map :cprevious +au Filetype c,cpp,cs,objc,java map :AS +au Filetype c,cpp,cs,objc,java map :A au Filetype c,cpp,cs,objc,java set cindent cst csto=0 -au Filetype c,cpp,cs,objc map :make -au Filetype java map :!ant -f ../build.xml +au Filetype c,cpp,cs,objc map :make +au Filetype java map :!ant -f ../build.xml au Filetype c,cpp,cs,objc set makeprg=make @@ -273,8 +273,8 @@ au BufRead,BufNewFile *.cls set filetype=tex au Filetype tex set textwidth=80 au Filetype tex set smartindent " Override Tagbar Toggle with LatexBox TOC -au Filetype tex nmap :LatexTOCToggle -au Filetype tex nmap :LatexLabels +au Filetype tex nmap :LatexTOCToggle +au Filetype tex nmap :LatexLabels "Remove Umlaute @@ -300,7 +300,7 @@ endfunction " python """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -au Filetype python map :!python % +au Filetype python map :!python % " vimrc file for following the coding standards specified in PEP 7 & 8. @@ -318,7 +318,7 @@ au Filetype python set textwidth=79 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" "Opens the current file in ipe -au Filetype xml map :call OpenIn("ipe") +au Filetype xml map :call OpenIn("ipe") """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -326,7 +326,7 @@ au Filetype xml map :call OpenIn("ipe") """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" "Opens the current file in ipe -au Filetype gnuplot map :call OpenIn("gnuplot -persist") +au Filetype gnuplot map :call OpenIn("gnuplot -persist") """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -344,6 +344,15 @@ let g:unaryTagsStack = "" au Filetype html,xml,xsl source /usr/share/vim/vimfiles/plugin/closetag.vim +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" markdown +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + +let g:instant_markdown_autostart = 0 +let g:instant_markdown_slow = 1 +au Filetype markdown map :InstantMarkdownPreview + + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " youcompleteme """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -355,7 +364,7 @@ let g:ycm_collect_identifiers_from_tags_files = 1 let g:ycm_autoclose_preview_window_after_completion = 1 let g:ycm_key_list_select_completion = [''] -nnoremap jd :YcmCompleter GoToDefinitionElseDeclaration +nnoremap jd :YcmCompleter GoToDefinitionElseDeclaration let g:ycm_filetype_whitelist = { 'c' : 1, 'cpp' : 1, 'cs' : 1, 'objc' : 1, 'java' : 1, 'python' : 1 } -- 2.30.2