" chezmoi:template:left-delimiter="{{ "{{- /* vim: set filetype=vim: */ -}} """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " fzf "{{ if lookPath "fzf" }} Plug 'junegunn/fzf', { 'tag': '0.40.0' } Plug 'junegunn/fzf.vim' map fz :GFiles map rg :Rg "{{ end }} colorscheme gruvbox set background=dark let g:airline_powerline_fonts = 0 let g:molokai_original = 1 let g:onedark_hide_endofbuffer = 1 let g:onedark_terminal_italics = 1 let g:UltiSnipsSnippetDirectories = [ 'UltiSnips', 'snips' ] "{{ if .development }} let g:sql_type_default = 'pgsql' """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " ALE let g:ale_sign_error = '→' let g:ale_sign_warning = '‽' let g:ale_echo_msg_format = '%s [%severity%] [%linter%]' let g:ale_set_loclist = 0 let g:ale_set_quickfix = 1 augroup linters autocmd! autocmd FileType javascript let g:ale_linters['javascript'] = ['eslint'] augroup END "{{ end }} """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " NERDTree let g:NERDTreeDirArrowExpandable = '▸' let g:NERDTreeDirArrowCollapsible = '▾' let NERDTreeDirArrows=1 map nt :NERDTreeToggle " Close nerdtree if it's the last buffer autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() \ | quit \ | endif " Mirror nerdtree in each tab autocmd BufWinEnter * silent NERDTreeMirror " check if reading from stdin autocmd StdinReadPre * let s:std_in=1 " open nerdtree if no args in passed to vim autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | wincmd p | endif " open nerdtree if vim opens to a directory autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists('s:std_in') \ | execute 'NERDTree' argv()[0] \ | wincmd p \ | enew \ | execute 'cd '.argv()[0] \ | endif