aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2019-03-14 11:32:16 +0100
committerBen Beltran <ben@nsovocal.com>2019-03-14 11:32:16 +0100
commitc87eeb577b5e1e1d9e8c396dec098f4cc3df6717 (patch)
treedeca36a92c37a935c35c56cbd1089902e5c76c36 /vimrc
parent8e72ba390d5f3809f4294b80a21c965c705185a2 (diff)
Add FZF config to vim. Simplify syntastic
Diffstat (limited to 'vimrc')
-rwxr-xr-xvimrc30
1 files changed, 24 insertions, 6 deletions
diff --git a/vimrc b/vimrc
index 096549c..1eefa87 100755
--- a/vimrc
+++ b/vimrc
@@ -88,10 +88,6 @@ map <Leader>e :e <C-R>=expand("%:p:h") . "/" <CR>
" Normal mode: <Leader>t
map <Leader>te :tabe <C-R>=expand("%:p:h") . "/" <CR>
-" Inserts the path of the currently edited file into a command
-" Command mode: Ctrl+P
-cmap <C-P> <C-R>=expand("%:p:h") . "/" <CR>
-
" Unimpaired configuration
" Bubble single lines
nmap <C-Up> [e
@@ -180,8 +176,30 @@ let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 1
-let g:syntastic_error_symbol = "✕"
-let g:syntastic_warning_symbol = "⚠︎"
+let g:syntastic_error_symbol = "X"
+let g:syntastic_warning_symbol = "!"
" Dank Mono Italics
highlight Keyword cterm=italic
+
+" FZF config
+set rtp+=/usr/local/opt/fzf
+
+" Inserts the path of the currently edited file into a command
+noremap <C-P> :FZF <CR>
+
+" Map colors to vim colors
+let g:fzf_colors =
+\ { 'fg': ['fg', 'Normal'],
+ \ 'bg': ['bg', 'Normal'],
+ \ 'hl': ['fg', 'Comment'],
+ \ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
+ \ 'bg+': ['bg', 'CursorLine', 'CursorColumn'],
+ \ 'hl+': ['fg', 'Statement'],
+ \ 'info': ['fg', 'PreProc'],
+ \ 'border': ['fg', 'Ignore'],
+ \ 'prompt': ['fg', 'Conditional'],
+ \ 'pointer': ['fg', 'Exception'],
+ \ 'marker': ['fg', 'Keyword'],
+ \ 'spinner': ['fg', 'Label'],
+ \ 'header': ['fg', 'Comment'] }