" 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
" ---------------------
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()
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