From 2e6c54477e29b52cbb01de14a1c393f54d7b2d04 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 23 Mar 2015 15:29:59 +0100 Subject: Remove cruft stuff from vim and use git submodules for plugins --- .config/vim/vimrc | 43 +++++++++++++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 10 deletions(-) (limited to '.config/vim/vimrc') diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 729d1c4..47e1781 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -5,6 +5,10 @@ " set lines=35 "end +set dir=/home/ben/.cache/vim/swp/ +set runtimepath=$XDG_CONFIG_HOME/vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after +runtime bundle/vim-pathogen/autoload/pathogen.vim + " basics set nocompatible " use vim defaults set mouse=a " make sure mouse is used in all cases. @@ -51,8 +55,7 @@ set tags=./tags; " syntax highlighting syntax on " enable syntax highlighting -" set templatepath .vim/plugin/templates.vim -let g:templatePath = "~/.config/vim/templates" +let NERDTreeShowHidden=1 " highlight redundant whitespaces and tabs. "highlight RedundantSpaces ctermbg=red guibg=red @@ -86,6 +89,11 @@ vnoremap ; : " strip ^M linebreaks from dos formatted files map M :%s/ $//g +" use Tab to switch between current and last buffer +nmap :b# + +map :NERDTreeToggle + " mutt rules autocmd BufRead /tmp/mutt-* set tw=72 spell @@ -117,22 +125,21 @@ autocmd BufNewFile,BufRead /home/ben/htdocs/mutti-web/*{xsl,xml} set sw=2 ts=8 s " settings for web projects autocmd BufNewFile,BufRead /home/ben/src/qbcontact/*{php,html} set sw=4 ts=4 sts=4 +" settings for systemd +autocmd BufNewFile,BufRead /home/ben/src/systemd/* set sw=8 ts=8 sts=8 et +autocmd BufNewFile,BufRead /home/ben/src/systemd/man/*.xml set sw=2 ts=2 sts=2 et + " vimmanpager stuff " disable line numbers when using vim as manpager autocmd FileType man set nonumber nohlsearch nohlsearch -" its important that viminfo is set at the end -" some options seem to overwrite this (history..) -set viminfo+=n$XDG_CACHE_HOME/vim/viminfo -set dir=$XDG_CACHE_HOME/vim/swp/ -set runtimepath=$XDG_DATA_HOME/vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after +"colorscheme tango +"set background=light -colorscheme tango -set background=light autocmd FileType tex colorscheme delek "autocmd FileType asciidoc colorscheme inkpot -set spellfile=$XDG_DATA_HOME/vim/spell.de.add,$XDG_DATA_HOME/vim/spell.en.add +set spellfile=$XDG_CONFIG_HOME/vim/spell/spell.de.add,$XDG_CONFIG_HOME/vim/spell/spell.en.add highlight ExtraWhitespace ctermbg=red guibg=red @@ -150,3 +157,19 @@ autocmd BufWinLeave * call clearmatches() :map :tabprevious :map :tabnext :map :tabnext + +call pathogen#infect() + +colorscheme tangoX + +set noerrorbells +set visualbell +" Turn of visualbell screen flashing +set t_vb= +" +" its important that viminfo is set at the end +" some options seem to overwrite this (history..) +"set viminfo+=n$XDG_CACHE_HOME/vim/viminfo +"set dir=$XDG_CACHE_HOME/vim/swp/ +"set runtimepath=$XDG_DATA_HOME/vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after +set viminfo+=n/home/ben/.cache/vim/viminfo -- cgit