@@ -3,6 +3,7 @@ filetype off " required
3
3
4
4
" set the runtime path to include Vundle and initialize
5
5
set rtp += ~/.vim/bundle/Vundle.vim
6
+ set rtp += ~/.fzf
6
7
7
8
call vundle#begin ()
8
9
" alternatively, pass a path where Vundle should install plugins
@@ -18,7 +19,7 @@ Plugin 'scrooloose/nerdtree'
18
19
Plugin ' scrooloose/syntastic'
19
20
Plugin ' scrooloose/nerdcommenter'
20
21
" Plugin 'kien/ctrlp.vim'
21
- Plugin ' bling /vim-airline'
22
+ Plugin ' vim-airline /vim-airline'
22
23
Plugin ' vim-airline/vim-airline-themes'
23
24
Plugin ' airblade/vim-gitgutter'
24
25
Plugin ' majutsushi/tagbar'
@@ -28,7 +29,7 @@ Plugin 'morhetz/gruvbox'
28
29
Plugin ' junegunn/goyo.vim'
29
30
Plugin ' tomasr/molokai'
30
31
Plugin ' lifepillar/vim-mucomplete'
31
- " Plugin 'junegunn/fzf'
32
+ Plugin ' junegunn/fzf.vim '
32
33
" Plugin 'yggdroot/indentline'
33
34
" plugin from http://vm-scripts.org/vim/scripts.html
34
35
" Plugin 'L9'
@@ -62,7 +63,7 @@ filetype plugin indent on " required
62
63
let g: airline_powerline_fonts= 1
63
64
64
65
" AirlineTheme config
65
- let g: airline_theme= ' wombat '
66
+ let g: airline_theme= ' ubaryd '
66
67
67
68
" Signify config
68
69
let g: signify_vcs_list= [' git' ]
@@ -79,12 +80,17 @@ let g:tagbar_ctags_bin="/usr/local/bin/ctags"
79
80
set number " relativenumber
80
81
set textwidth = 99
81
82
" set colorcolumn=101
82
- set softtabstop = 4 shiftwidth = 4 expandtab
83
+ set softtabstop = 2 shiftwidth = 2 expandtab
83
84
set background = dark
84
85
set title
85
86
set hlsearch
87
+
88
+ " Auto indent when copy pasting
89
+ set pastetoggle = <F3>
90
+
86
91
" set cursorline
87
92
set clipboard = unnamed
93
+ set showcmd
88
94
89
95
" Fuzzy file built-in
90
96
set path += **
@@ -95,6 +101,27 @@ set wildignore+=*/min/*,*/vendor/*,*/node_modules/*,*/bower_components/*,*/stora
95
101
set completeopt += menuone,noselect
96
102
let g: mucomplete #enable_auto_at_startup= 1
97
103
104
+ " Default fzf layout
105
+ " - down / up / left / right
106
+ let g: fzf_layout = { ' down' : ' ~40%' }
107
+ let $FZF_DEFAULT_COMMAND = ' (git ls-tree -r --name-only HEAD || find . -path "*/\.*" -prune -o -type f -print -o -type l -print | sed s/^..//) 2> /dev/null'
108
+
109
+ " Customize fzf colors to match your color scheme
110
+ let g: fzf_colors =
111
+ \ { ' fg' : [' fg' , ' Normal' ],
112
+ \ ' bg' : [' bg' , ' Normal' ],
113
+ \ ' hl' : [' fg' , ' Comment' ],
114
+ \ ' fg+' : [' fg' , ' CursorLine' , ' CursorColumn' , ' Normal' ],
115
+ \ ' bg+' : [' bg' , ' CursorLine' , ' CursorColumn' ],
116
+ \ ' hl+' : [' fg' , ' Statement' ],
117
+ \ ' info' : [' fg' , ' PreProc' ],
118
+ \ ' border' : [' fg' , ' Ignore' ],
119
+ \ ' prompt' : [' fg' , ' Conditional' ],
120
+ \ ' pointer' : [' fg' , ' Exception' ],
121
+ \ ' marker' : [' fg' , ' Keyword' ],
122
+ \ ' spinner' : [' fg' , ' Label' ],
123
+ \ ' header' : [' fg' , ' Comment' ] }
124
+
98
125
" let dimension=&colorcolumn + 5
99
126
"
100
127
" " Indent config
123
150
" colorscheme dracula
124
151
endif
125
152
126
- au BufRead , BufNewFile * .vue set filetype = vue
153
+ au BufRead ,BufNewFile *.vue set filetype = html
127
154
autocmd FileType html setlocal shiftwidth = 2 tabstop = 2
128
- autocmd FileType vue setlocal shiftwidth = 4 tabstop = 4
155
+ autocmd FileType vue setlocal shiftwidth = 2 tabstop = 2
129
156
" Allow transparent bg
130
157
" autocmd ColorScheme * highlight Normal ctermbg=None
131
158
@@ -137,6 +164,9 @@ syntax enable
137
164
" colorscheme solarized
138
165
colorscheme molokai
139
166
167
+ " FZF Key Bindings
168
+ nmap <C-P> :Files<CR>
169
+
140
170
" Key Bindings
141
171
nmap <F7> :NERDTreeToggle<CR>
142
172
nmap <F8> :TagbarToggle<CR>
0 commit comments