-
Notifications
You must be signed in to change notification settings - Fork 2
/
vimrc
140 lines (117 loc) · 3.69 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
" Begin Dein.vim - https://github.com/Shougo/dein.vim
if &compatible
set nocompatible " Be iMproved
endif
" Required:
" Add the dein installation directory into runtimepath
set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim
" Required:
call dein#begin('~/.cache/dein')
" Let dein manage dein
call dein#add('~/.cache/dein/repos/github.com/Shougo/dein.vim')
if !has('nvim')
call dein#add('roxma/nvim-yarp')
call dein#add('roxma/vim-hug-neovim-rpc')
endif
" My Plugins
call dein#add('scrooloose/nerdtree')
call dein#add('scrooloose/syntastic')
call dein#add('scrooloose/nerdcommenter')
call dein#add('godlygeek/tabular')
call dein#add('tpope/vim-fugitive')
call dein#add('tpope/vim-unimpaired')
call dein#add('Shougo/deoplete.nvim')
call dein#add('Shougo/neosnippet.vim')
call dein#add('Shougo/neosnippet-snippets')
call dein#add('wincent/Command-T')
call dein#add('kchmck/vim-coffee-script')
call dein#add('moll/vim-node')
call dein#add('pangloss/vim-javascript')
call dein#add('jelera/vim-javascript-syntax')
call dein#add('junegunn/seoul256.vim')
call dein#add('digitaltoad/vim-jade')
call dein#add('captbaritone/better-indent-support-for-php-with-html')
call dein#add('briancollins/vim-jst')
call dein#add('walm/jshint.vim')
call dein#add('mxw/vim-jsx')
" call dein#add('justinj/vim-react-snippets')
call dein#add('nathanaelkane/vim-indent-guides')
call dein#add('marijnh/tern_for_vim')
call dein#add('Slava/tern-meteor')
call dein#add('tpope/vim-surround')
call dein#add('plasticboy/vim-markdown')
call dein#add('jiangmiao/auto-pairs')
call dein#add('rizzatti/dash.vim')
" Required:
call dein#end()
" Required:
filetype plugin indent on
syntax enable
" If you want to install not installed plugins on startup.
"if dein#check_install()
" call dein#install()
"endif
" End Dein.vim
" Turn on line numbering. Turn it off with "set nonu"
set nu
set ai
set expandtab
set shiftwidth=2
set softtabstop=2
" Case insensitive search
set ic
" Higlhight search
set hls
" Wrap text instead of being on one line
set lbr
" Set the background
:set background=dark
" Set to 256 color
set t_Co=256
colorscheme xoria256
"colorscheme seoul256
"colorscheme hemisu
"colorscheme mango
"colorscheme grb4
"colorscheme wombat
"colorscheme Tomorrow
"colorscheme Tomorrow-Night
"colorscheme Tomorrow-grb
"colorscheme grb256
"colorscheme grb-light
"colorscheme github
"colorscheme delek
" Formatting
set ts=2 " Tabs are 2 spaces
set bs=2 " Backspace over everything in insert mode
autocmd BufNewFile,BufRead *.json setf javascript
" toggles NERDTree on and off
map <f2> :NERDTreeToggle<cr>
imap <f2> <esc>:NERDTreeToggle<cr>i
" UltiSnips Setup
:filetype plugin on
" let g:UltiSnipsListSnippets = "<S-Tab>"
let g:UltiSnipsExpandTrigger="<c-j>"
let g:UltiSnipsJumpForwardTrigger="<c-j>"
let g:UltiSnipsJumpBackwardTrigger="<c-k>"
let g:UltiSnipsListSnippets="<c-l>"
let g:UltiSnipsSnippetDir="~/.vim/bundle/meteor-vim-ultisnips/"
" Change leader key
:let mapleader = ","
" Change backup to edit crontab
set backupskip=/tmp/*,/private/tmp/*
" Set Nerdtree statusline to display Git branch
let NERDTreeStatusline="%{fugitive#statusline()}%{exists('b:NERDTreeRoot')?b:NERDTreeRoot.path.str():''}"
let NERDTreeShowLineNumbers=1
" Get more information into the statusline for files
if has('statusline')
set laststatus=2
" Broken down into easily includeable segments
set statusline=%<%f\ " Filename
set statusline+=%w%h%m%r " Options
set statusline+=%{fugitive#statusline()} " Git Hotness
set statusline+=\ [%{&ff}/%Y] " filetype
set statusline+=\ [%{getcwd()}] " current dir
"set statusline+=\ [A=\%03.3b/H=\%02.2B] " ASCII / Hexadecimal value of char
set statusline+=%=%-14.(%l,%c%V%)\ %p%% " Right aligned file nav info
endif