]> git.zndr.dk Git - dotfiles.git/commitdiff
New plugins .vimrc
authorJannik Zander <jannikz@gmail.com>
Fri, 3 Jun 2016 14:50:45 +0000 (16:50 +0200)
committerJannik Zander <jannikz@gmail.com>
Fri, 3 Jun 2016 14:50:45 +0000 (16:50 +0200)
.vimrc

diff --git a/.vimrc b/.vimrc
index 8bc2e724776f1c264fd376ce8a0f198962989beb..7d721e95920c2eb5469609e751731e3f15d7a29b 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -1,21 +1,21 @@
 " section: environment {{{1
 " ---------------------
 
-set nocompatible
-set runtimepath+=~/.cache/vim
-set directory=~/.local/share/vim/swap
-set backupdir=~/.local/share/vim/backup
-set undodir=~/.local/share/vim/undo
-set viminfo+=n~/.local/share/vim/viminfo
-
+cd ~
+silent !mkdir -p .local/share/vim/{swap,backup,undo}
+silent !mkdir -p .cache/vim/autoload
 if empty(glob('~/.cache/vim/autoload/plug.vim'))
-  cd ~
-  silent !mkdir -p .local/share/vim/{swap,backup,undo} > /dev/null 2>&1
-  silent !curl -fLo .cache/vim/autoload/plug.vim --create-dirs
+  silent !curl -fLo .cache/vim/autoload/plug.vim
     \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
   autocmd VimEnter * PlugInstall | source $MYVIMRC
-  cd -
 endif
+cd -
+
+set directory=~/.local/share/vim/swap
+set backupdir=~/.local/share/vim/backup
+set undodir=~/.local/share/vim/undo
+set viminfo+=n~/.local/share/vim/viminfo
+set runtimepath+=~/.cache/vim
 
 " section: plugins {{{1
 " ---------------------
@@ -38,8 +38,11 @@ Plug 'junegunn/fzf.vim'
 Plug 'thanthese/Tortoise-Typing'
 Plug 'altercation/vim-colors-solarized'
 Plug 'editorconfig/editorconfig-vim'
-Plug 'scrooloose/nerdtree'
 Plug 'vim-scripts/a.vim'
+Plug 'Shougo/vimfiler.vim'
+Plug 'Shougo/unite.vim'
+Plug 'bronson/vim-trailing-whitespace'
+Plug 'junegunn/vim-easy-align'
 
 call plug#end()
 
@@ -110,7 +113,9 @@ let g:fzf_launcher = "in_a_new_term_function %s"
 
 let g:editorconfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
 let g:editorconfig_verbose=0
-let g:nerdtreewinsize=30
+
+set colorcolumn=80
+highlight ColorColumn ctermbg=9
 
 " }}}2
 " section: commands {{{1