@@ -18,52 +18,70 @@ Plugin 'tpope/vim-fugitive'
18
18
Plugin ' scrooloose/nerdtree'
19
19
Plugin ' scrooloose/syntastic'
20
20
Plugin ' scrooloose/nerdcommenter'
21
- " Plugin 'kien/ctrlp.vim'
22
21
Plugin ' vim-airline/vim-airline'
23
22
Plugin ' vim-airline/vim-airline-themes'
24
23
Plugin ' airblade/vim-gitgutter'
25
- Plugin ' majutsushi/tagbar'
26
24
Plugin ' dracula/vim'
27
25
Plugin ' altercation/vim-colors-solarized'
28
26
Plugin ' morhetz/gruvbox'
27
+ Plugin ' acoustichero/simple_dark'
29
28
Plugin ' junegunn/goyo.vim'
30
29
Plugin ' tomasr/molokai'
31
30
Plugin ' lifepillar/vim-mucomplete'
31
+ Plugin ' junegunn/fzf' , { ' dir' : ' ~/.fzf' , ' do' : ' ./install --all' }
32
32
Plugin ' junegunn/fzf.vim'
33
- " Plugin 'yggdroot/indentline'
34
33
" plugin from http://vm-scripts.org/vim/scripts.html
35
34
" Plugin 'L9'
36
35
" Git plugin not hosted on GitHub
37
36
" Plugin 'git://git.wincent.com/command-t.git'
38
37
" git repos on your local machine (i.e. when working on your own plugin)
39
38
" Plugin 'file:///home/gmarik/path/to/plugin'
40
- " The sparkup vim script is in a subdirectory of this repo called vim.
41
- " Pass the path to set the runtimepath properly.
42
- Plugin ' rstacruz/sparkup' , {' rtp' : ' vim/' }
43
- " Install L9 and avoid a Naming conflict if you've already installed a
44
- " different version somewhere else.
45
- " Plugin 'ascenator/L9', {'name': 'newL9'}
46
-
47
- " All of your Plugins must be added before the following line
48
- call vundle#end () " required
49
- filetype plugin indent on " required
50
- " To ignore plugin indent changes, instead use:
51
- " filetype plugin on
52
- "
53
- " Brief help
54
- " :PluginList - lists configured plugins
39
+ " The sparkup vim script is in a subdirectory of this repo called vim.
40
+ " Pass the path to set the runtimepath properly.
41
+ Plugin ' rstacruz/sparkup' , {' rtp' : ' vim/' }
42
+ " Install L9 and avoid a Naming conflict if you've already installed a
43
+ " different version somewhere else.
44
+ " Plugin 'ascenator/L9', {'name': 'newL9'}
45
+ " All of your Plugins must be added before the following line
46
+ call vundle#end () " required
47
+ filetype plugin indent on " required
48
+ " To ignore plugin indent changes, instead use:
49
+ " filetype plugin on
50
+ " Brief help
51
+ " :PluginList - lists configured plugins
55
52
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
56
53
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
57
54
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
58
55
"
59
56
" see :h vundle for more details or wiki for FAQ
60
57
" Put your non-Plugin stuff after this line
61
58
59
+ set number " relativenumber
60
+ set textwidth = 99
61
+ set autoindent
62
+ " set colorcolumn=101
63
+ set nowrap
64
+ set softtabstop = 4 shiftwidth = 4 expandtab
65
+ set background = dark
66
+ set title
67
+ set hlsearch
68
+ set incsearch
69
+ set clipboard = unnamed
70
+ set showcmd
71
+ " Auto indent when copy pasting
72
+ set pastetoggle = <F3>
73
+ " Fuzzy file built-in
74
+ set path += **
75
+ set wildmenu
76
+ set wildignore += * /min/ * ,* /vendor/ * ,* /node_modules/ * ,* /bower_components/ * ,* /storage/ *
77
+ set backupdir = ~/.vim/tmp//,.
78
+ set directory = ~/.vim/tmp//,.
79
+
62
80
" Airline config
63
81
let g: airline_powerline_fonts= 1
64
82
65
83
" AirlineTheme config
66
- let g: airline_theme= ' ubaryd '
84
+ let g: airline_theme= ' luna '
67
85
68
86
" Signify config
69
87
let g: signify_vcs_list= [' git' ]
@@ -77,26 +95,6 @@ let g:tagbar_ctags_bin="/usr/local/bin/ctags"
77
95
78
96
" let g:solarized_termcolors=256
79
97
80
- set number " relativenumber
81
- set textwidth = 99
82
- " set colorcolumn=101
83
- set softtabstop = 2 shiftwidth = 2 expandtab
84
- set background = dark
85
- set title
86
- set hlsearch
87
-
88
- " Auto indent when copy pasting
89
- set pastetoggle = <F3>
90
-
91
- " set cursorline
92
- set clipboard = unnamed
93
- set showcmd
94
-
95
- " Fuzzy file built-in
96
- set path += **
97
- set wildmenu
98
- set wildignore += * /min/ * ,* /vendor/ * ,* /node_modules/ * ,* /bower_components/ * ,* /storage/ *
99
-
100
98
" MuComplete
101
99
set completeopt += menuone,noselect
102
100
let g: mucomplete #enable_auto_at_startup= 1
@@ -137,12 +135,22 @@ let g:NERDSpaceDelims=1
137
135
let g: NERDCustomDelimiters= {' c' :{ ' left' : ' /**' , ' right' : ' */' }}
138
136
let g: NERDCommentEmptyLines= 1
139
137
140
- " if &term =~ '256color' || &term == 'screen'
141
- " " Disable Background Color Erase (BCE) so that color schemes
142
- " " " work properly when Vim is used inside tmux and GNU screen.
143
- " set t_ut=
144
- " set t_Co=256
145
- " endif
138
+ " Syntastic config
139
+ set statusline += % #warningmsg #
140
+ set statusline += % {SyntasticStatuslineFlag ()}
141
+ set statusline += %*
142
+
143
+ let g: syntastic_always_populate_loc_list = 1
144
+ let g: syntastic_auto_loc_list = 1
145
+ let g: syntastic_check_on_open = 1
146
+ let g: syntastic_check_on_wq = 0
147
+
148
+ if &term = ~ ' 256color' || &term == ' screen'
149
+ " Disable Background Color Erase (BCE) so that color schemes
150
+ " " work properly when Vim is used inside tmux and GNU screen.
151
+ set t_ut =
152
+ set t_Co = 256
153
+ endif
146
154
147
155
if &term == ' linux' || &term == ' screen'
148
156
" colorscheme solarized
@@ -151,25 +159,26 @@ else
151
159
endif
152
160
153
161
au BufRead ,BufNewFile *.vue set filetype = html
154
- autocmd FileType html setlocal shiftwidth = 2 tabstop = 2
155
- autocmd FileType vue setlocal shiftwidth = 2 tabstop = 2
162
+ autocmd FileType html setlocal shiftwidth = 2 softtabstop = 2 expandtab
163
+ autocmd FileType vue setlocal shiftwidth = 2 softtabstop = 2 expandtab
164
+ autocmd FileType js setlocal shiftwidth = 4 softtabstop = 4 expandtab
156
165
" Allow transparent bg
157
166
" autocmd ColorScheme * highlight Normal ctermbg=None
158
167
159
- autocmd ColorScheme * highlight Comment cterm= italic
168
+ " autocmd ColorScheme * highlight Comment cterm=italic
160
169
170
+ " let g:mucomplete#enable_auto_at_startup = 0
161
171
syntax enable
162
172
" colorscheme github
163
173
" colorscheme gruvbox
164
174
" colorscheme solarized
165
- colorscheme molokai
175
+ colorscheme simple_dark
166
176
167
177
" FZF Key Bindings
168
178
nmap <C-P> :Files<CR>
169
-
170
- " Key Bindings
171
179
nmap <F7> :NERDTreeToggle<CR>
172
180
nmap <F8> :TagbarToggle<CR>
181
+ nmap <C-S-F> :Ag<CR>
173
182
174
183
" Auto Session
175
184
" function! MakeSession()
@@ -205,3 +214,4 @@ augroup END
205
214
" au VimLeave * :call MakeSession()
206
215
" au BufRead,BufEnter,BufNewFile * IndentLinesReset
207
216
" au VimEnter * Goyo
217
+ com ! - bar - bang Ag call fzf#vim#ag (<q-args> , fzf#vim#with_preview ({' options' : ' --delimiter=: --nth=4..' }, ' right' ), <bang> 0 )
0 commit comments