set ruler set number set nu syntax enable set nocursorline let mapleader="," let OPSYSTEM = system('uname') filetype plugin indent on let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 0 if OPSYSTEM == "Darwin" set rtp+=/usr/local/opt/fzf endif call plug#begin() Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' } Plug 'scrooloose/nerdtree' Plug 'scrooloose/nerdcommenter' Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } Plug 'zchee/deoplete-go', { 'do': 'make'} Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'bounceme/highwayman' Plug 'owickstrom/vim-colors-paramount' Plug 'ninja/sky' Plug 'fortes/vim-escuro' Plug 'fenetikm/falcon' ""if OPSYSTEM == "Darwin" Plug '/usr/local/opt/fzf' ""else "" Plug '~/fzf' ""endif Plug 'junegunn/limelight.vim' Plug 'junegunn/fzf.vim' Plug 'flazz/vim-colorschemes' call plug#end() inoremap " "" inoremap ' '' inoremap ( () inoremap [ [] inoremap { {} inoremap { {}O inoremap {; {};O let g:NERDTreeNodeDelimiter = "\u00a0" map :NERDTreeToggle let g:go_highlight_build_constraints = 1 let g:go_highlight_extra_types = 1 let g:go_highlight_fields = 1 let g:go_highlight_functions = 1 let g:go_highlight_methods = 1 let g:go_highlight_operators = 1 let g:go_highlight_structs = 1 let g:go_highlight_types = 1 let g:go_auto_sameids = 1 let g:go_fmt_command = "goimports" " Error and warning signs. let g:ale_sign_error = '⤫' let g:ale_sign_warning = '⚠' au FileType go nmap gt :GoDeclsDir " Enable deoplete on startup let g:deoplete#enable_at_startup = 1 let g:go_guru_scope = ["..."] let g:UltiSnipsExpandTrigger="" let g:UltiSnipsJumpForwardTrigger="" let g:UltiSnipsJumpBackwardTrigger="" set termguicolors colorscheme falcon set background=dark " An action can be a reference to a function that processes selected lines function! s:build_quickfix_list(lines) call setqflist(map(copy(a:lines), '{ "filename": v:val }')) copen cc endfunction let g:fzf_action = { \ 'ctrl-q': function('s:build_quickfix_list'), \ 'ctrl-t': 'tab split', \ 'ctrl-x': 'split', \ 'ctrl-v': 'vsplit' } " Default fzf layout " - down / up / left / right let g:fzf_layout = { 'down': '~40%' } " Customize fzf colors to match your color scheme 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'] } " Enable per-command history. " CTRL-N and CTRL-P will be automatically bound to next-history and " previous-history instead of down and up. If you don't like the change, " explicitly bind the keys to down and up in your $FZF_DEFAULT_OPTS. let g:fzf_history_dir = '~/.local/share/fzf-history'