forked from christophersjchow/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 3
/
vimrc
66 lines (60 loc) · 1.8 KB
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
call plug#begin('~/.vim/plugged')
" Language / syntax support.
" Plug 'tpope/vim-haml'
" Plug 'tpope/vim-rails'
" Plug 'tpope/vim-cucumber'
Plug 'tpope/vim-markdown'
" Plug 'tpope/vim-fugitive'
" Plug 'tpope/vim-rake'
" Plug 'vim-ruby/vim-ruby'
" Plug 'dsawardekar/portkey' | Plug 'dsawardekar/ember.vim'
" Plug 'mustache/vim-mustache-handlebars'
" Plug 'kchmck/vim-coffee-script'
" Plug 'fatih/vim-go'
" Plug 'rust-lang/rust.vim'
" Plug 'hail2u/vim-css3-syntax'
" Plug 'groenewege/vim-less'
" Plug 'elzr/vim-json'
" Plug 'noprompt/vim-yardoc'
" Plug 'othree/html5.vim'
" Plug 'othree/yajs.vim'
" Plug 'ap/vim-css-color'
" Plug 'ynkdir/vim-vimlparser' | Plug 'syngan/vim-vimlint'
" Plug 'mutewinter/tomdoc.vim'
" Plug 'cespare/vim-toml'
" Plug 'hashivim/vim-hashicorp-tools'
" Plug 'apeschel/vim-syntax-syslog-ng'
" Plug 'evanmiller/nginx-vim-syntax'
Plug 'python-mode/python-mode', {'branch': 'develop'}
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
" Plug 'Soliah/vim-test'
" Plug 'godlygeek/tabular'
" Plug 'tomtom/tcomment_vim'
" Plug 'henrik/rename.vim'
" Plug 'scrooloose/syntastic'
" Plug 'benekastah/neomake'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'Valloric/YouCompleteMe'
" Plug 'dyng/auto_mkdir'
" Plug 'posva/vim-vue'
Plug 'JuliaEditorSupport/julia-vim'
Plug 'cespare/vim-toml'
" Themes
Plug 'chriskempson/base16-vim'
call plug#end()
" source ~/.vim/platform.vim
source ~/.vim/core.vim
source ~/.vim/plugins.vim
source ~/.vim/mappings.vim
" Strip Trailing Whitespace
function! StripTrailingWhitespace()
if !&binary && &modifiable && &filetype != 'diff'
let l:winview = winsaveview()
%s/\s\+$//e
let @/=''
call winrestview(l:winview)
endif
endfunction
nnoremap <leader>W :call StripTrailingWhitespace()<CR>