X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/f9b5f766d88864e8e461da8e09a5337fdae1becd..80b76e00fdc2cc5368c6444a3bad6e2e476420ec:/vimrc?ds=inline diff --git a/vimrc b/vimrc index 096549c..b059ccf 100755 --- a/vimrc +++ b/vimrc @@ -79,6 +79,7 @@ set backspace=indent,eol,start " load the plugin and indent settings for the detected filetype filetype plugin indent on filetype plugin on +set omnifunc=syntaxcomplete#Complete " Opens an edit command with the path of the currently edited file filled in " Normal mode: e @@ -88,10 +89,6 @@ map e :e =expand("%:p:h") . "/" " Normal mode: t map te :tabe =expand("%:p:h") . "/" -" Inserts the path of the currently edited file into a command -" Command mode: Ctrl+P -cmap =expand("%:p:h") . "/" - " Unimpaired configuration " Bubble single lines nmap [e @@ -114,8 +111,8 @@ set modeline set modelines=10 " Default color scheme -set t_Co=256 -color molokai +set termguicolors +color rbdr " Directories for swp files set backupdir=~/.vim/.backup @@ -175,13 +172,30 @@ endfunction nnoremap :call NumberToggle() -" Syntastic stuff -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 = "⚠︎" - " 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 :FZF + +" 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'] } + +" ALE config +let g:ale_linters = {'javascript': ['eslint']}