From 959eda32756b1e388ef1be9296d23d03653514c6 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Thu, 14 Aug 2014 00:31:44 +0200 Subject: [PATCH] switched some vim plugins --- vimrc | 69 ++++++++++++++++++++++++----------------------------------- 1 file changed, 28 insertions(+), 41 deletions(-) diff --git a/vimrc b/vimrc index 010a996..e1dc3a2 100644 --- a/vimrc +++ b/vimrc @@ -14,31 +14,33 @@ Plugin 'gmarik/Vundle.vim' Plugin 'L9' Plugin 'unimpaired.vim' +Plugin 'mhinz/vim-startify' + Plugin 'scrooloose/nerdtree' Plugin 'kien/ctrlp.vim' -Plugin 'maxbrunsfeld/vim-yankstack', {'name': 'yankstack'} +Plugin 'maxbrunsfeld/vim-yankstack', {'name': 'yankstack'} Plugin 'surround.vim' +Plugin 'SirVer/ultisnips' +Plugin 'honza/vim-snippets' + Plugin 'editorconfig/editorconfig-vim' -Plugin 'pangloss/vim-javascript' -Plugin 'scrooloose/syntastic.git' - -Plugin 'mileszs/ack.vim' - Plugin 'tpope/vim-fugitive' Plugin 'airblade/vim-gitgutter' +Plugin 'mileszs/ack.vim' + Plugin 'vim-airline', {'name': 'airline'} -Plugin 'flazz/vim-colorschemes' +Plugin 'altercation/vim-colors-solarized' -Plugin 'snipMate' +Plugin 'scrooloose/syntastic.git' +Plugin 'Townk/vim-autoclose' +Plugin 'pangloss/vim-javascript' Plugin 'mustache/vim-mustache-handlebars' -Plugin 'mhinz/vim-startify' - " All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indent on " required @@ -50,7 +52,7 @@ set t_Co=256 " CONFIGURATION MAPPING set autoread " set to auto read when a file is changed from the outside -"set mouse=a " allow for full mouse support +set mouse=a " allow for full mouse support set autowrite set showcmd " show typed commands @@ -79,6 +81,7 @@ set nobackup " prevent backups of files, since using vers set nowritebackup set noswapfile set directory=~/.vim/.swp,/tmp " swap directory + set shiftwidth=4 " set tab width set softtabstop=4 set tabstop=4 @@ -89,10 +92,12 @@ set hidden set wrap " wrap lines set linebreak " this will not break whole words while wrap is enabled -set showbreak=… +"set showbreak=… set cursorline " highlight current line set list listchars=tab:\ \ ,trail:· " show · for trailing space, \ \ for trailing tab + set spelllang=en,de " set spell check language + set noeb vb t_vb= " disable audio and visual bells au GUIEnter * set vb t_vb= @@ -102,7 +107,6 @@ if has('statusline') set laststatus=2 endif - " VIM 7.3 FEATURES if v:version >= 703 set undofile @@ -113,7 +117,6 @@ endif " COLOR SCHEME set background=dark -let g:solarized_contrast = "high" colorscheme solarized " FOLDING @@ -147,10 +150,12 @@ nnoremap k gk "inoremap { {}O "inoremap ( ()O "inoremap [ []O + " fast window switching map , w " cycle between buffers map . :b# + " change directory to current buffer map cd :cd %:p:h " swap implementations of ` and ' jump to prefer row and column jumping @@ -161,17 +166,23 @@ vmap > >gv vmap < r :%s#\<=expand("")\># + " strip all trailing whitespace in the current file nnoremap W :%s/\s\+$//e:let @/='' + " insert path of current file into a command cmap =expand("%:p:h") . "/" + " fast editing of the .vimrc nmap ev :e $MYVIMRC nmap sv :so $MYVIMRC + " allow saving when you forgot sudo cmap w!! w !sudo tee % >/dev/null + " turn on spell checking map spl :setlocal spell! " spell checking shortcuts @@ -182,38 +193,15 @@ map s? z= nmap hh :set invhlsearch nmap ll :set invlist -nmap nn :set invnumber nmap pp :set invpaste + +nmap nn :set invnumber nmap ii :set invrelativenumber -" remap [] to <> for german keyboard -nmap < [ -nmap > ] -omap < [ -omap > ] -xmap < [ -xmap > ] - -" accomondate with german keyboard - -"nnoremap ß -"nnoremap Ä } -"nnoremap Ö { -"nnoremap ä ] -"nnoremap ö [ - if exists('+relativenumber') set relativenumber endif -"" ADDITIONAL AUTOCOMMANDS - -" saving when focus lost (after tabbing away or switching buffers) -"au FocusLost,BufLeave,WinLeave,TabLeave * silent! up -" open in last edit place -"au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"" | endif -"au QuickFixCmdPost *grep* cwindow - "" PLUGIN SETTINGS " NERDTree @@ -235,7 +223,6 @@ vmap j ]egv nmap p yankstack_substitute_older_paste nmap P yankstack_substitute_newer_paste - " FILETYPE SPECIFIC " MAIL HUMAN TEX @@ -245,7 +232,7 @@ au FileType human,mail,tex set expandtab textwidth=78 nocindent " Python au FileType python set noexpandtab -" JavaScript +" Json au BufRead,BufNewFile *.json set ft=json " Mustache