Skip to content

Instantly share code, notes, and snippets.

@joelremix
Last active December 1, 2021 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joelremix/f5ada0498ddced6709ef to your computer and use it in GitHub Desktop.
Save joelremix/f5ada0498ddced6709ef to your computer and use it in GitHub Desktop.
VIM: vimrc
set nocompatible "Disable vi-compatability. Above everything else to enable certain features below this line
let mapleader = " "
let g:mapleader = " "
set exrc "Allows per-project vimrc files
" set guifont=Monoid\ Nerd\ Font:h14
" set guifont=SauceCodePro\ Nerd\ Font:h15
" set guifont=Monoid\ Nerd\ Font
" Gui colors if running iTerm
if $TERM_PROGRAM =~ "iTerm"
set termguicolors
endif
if (has("nvim"))
" For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 >
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
endif
"For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 >
"Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd >
" < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 >
if (has("termguicolors"))
set termguicolors
endif
" Do not set termguicolors for tmux to display colorscheme properly
" set termguicolors
" set t_Co=256
" The first two lines forces true colour on, since vim can’t detect it within tmux.
" The last line on its own will work outside tmux, but result in no colours inside tmux.
let &t_8f="\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b="\<Esc>[48;2;%lu;%lu;%lum"
syntax on
filetype plugin indent on "pathogen advised
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
" Plug 'vim-scripts/AutoComplPop'
" Plug 'joelremix/AutoComplPop', {'branch': 'release'}
Plug 'jiangmiao/auto-pairs'
Plug 'chriskempson/base16-vim'
" Plug 'ctrlpvim/ctrlp.vim'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'mattn/emmet-vim'
Plug 'morhetz/gruvbox'
Plug 'ajmwagar/vim-deus'
" Plug 'kristijanhusak/vim-hybrid-material'
Plug 'embark-theme/vim', { 'as': 'embark' }
" Plug 'sts10/vim-pink-moon'
" Plug 'co1ncidence/mountaineer.vim'
Plug 'pangloss/vim-javascript'
Plug 'whatyouhide/vim-gotham'
Plug 'AlessandroYorba/Despacio'
Plug 'pgavlin/pulumi.vim'
Plug 'arcticicestudio/nord-vim'
Plug 'pangloss/vim-javascript'
Plug 'preservim/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
" Plug 'Yggdroot/indentLine'
Plug 'vim-airline/vim-airline-themes'
Plug 'ryanoasis/vim-devicons'
" Plug 'vim-utils/vim-man'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-fugitive'
" Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' }
Plug 'joshdick/onedark.vim'
" Plug 'atelierbram/vim-colors_atelier-schemes'
Plug 'ap/vim-css-color'
Plug 'sheerun/vim-polyglot'
Plug 'terryma/vim-smooth-scroll'
Plug 'tpope/vim-surround'
Plug 'rakr/vim-togglebg'
" Plug 'christoomey/vim-tmux-navigator'
" Plug 'rakr/vim-two-firewatch'
Plug 'vim-airline/vim-airline'
" Plug 'git-time-metric/gtm-vim-plugin'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()
" Automatically install missing plugins on startup
autocmd VimEnter *
\ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync | q
\| endif
if filereadable(expand("~/.vimrc_background"))
" let base16colorspace=256
source ~/.vimrc_background
endif
source ~/.config/nvim/plug-config/coc.vim
" set background=dark
" This line before colorscheme declaration
" let base16colorspace=256
" colorscheme base16-default-dark
" let g:airline_theme='base16_default'
"
" colorscheme onedark
" let g:onedark_termcolors=256
" let g:airline_theme='onedark'
" colorscheme Atelier_EstuaryLight
" colorscheme pink-moon
" colorscheme goldfish
" colorscheme pulumi
" colorscheme deus
" colorscheme Gucci
" colorscheme gotham256
" colorscheme mountaineer
" colorscheme peacocks-in-space
" colorscheme embark
" let g:airline_theme = 'embark'
" let g:despacio_Sunset = 1
" let g:despacio_Twilight = 1
" let g:despacio_Midnight = 1
" colorscheme despacio
" colorscheme hybrid_material
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Theme Gruvbox
" let g:gruvbox_contrast_dark='hard'
" colorscheme gruvbox
" set background=dark " dark or light if you prefer the light version
"
" Theme Gruvbox - Light
"
" let g:gruvbox_contrast_light='hard' " soft, medium, hard
" set background=light " dark or light if you prefer the light version
" let g:gruvbox_number_column=235
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" colorscheme two-firewatch
" set background=light " dark or light if you prefer the light version
" let g:two_firewatch_italics=1
" let g:airline_theme='twofirewatch' " if you have Airline installed and want the associated theme
"
"set guioptions-=r
"set guioptions-=L " disables left-hand scrollbar
"set guioptions-=rL " disables scrollbar
set guioptions-=R " disables scrollbar
set foldmethod=indent
set foldnestmax=10
set nofoldenable
set foldlevel=2
set scrolloff=8
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" indentLine settings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" let g:indentLine_setConceal = 0
" Disables indentLine since it needs conceal level of 1 or 2
"works with spaces indenting only, not tabs
"let g:indentLine_char = '|'
" Line indent visual using only vim without plugin
"set list lcs=tab:\|.
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" PLUGINS
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" GTM
" let g:gtm_plugin_status_enabled = 1
" function! AirlineInit()
" if exists('*GTMStatusline')
" call airline#parts#define_function('gtmstatus', 'GTMStatusline')
" let g:airline_section_b = airline#section#create([g:airline_section_b, ' ', '[', 'gtmstatus', ']'])
" endif
" endfunction
" autocmd User AirlineAfterInit call AirlineInit()
" FZF
set rtp+=/usr/local/opt/fzf
noremap <leader>t :GFiles<CR>
noremap <leader>b :Buffers<CR>
" vim-hexokinase
" let g:Hexokinase_highlighters = ['sign_column'] " This is the default display
" Complete
" Navigate the complete menu items like CTR+n / CTRL-p would.
inoremap <expr> <Down> pumvisible() ? "<C-n>" :"<Down>"
inoremap <expr> <Up> pumvisible() ? "<C-p>" :"<Up>"
" Select the complete menu item like CTRL-y would.
inoremap <expr> <Right> pumvisible() ? "<C-y>" :"<Right>"
inoremap <expr> <CR> pumvisible() ? "<C-y>" :"<CR>"
" Cancel the complete menu item like CTRL+e would.
inoremap <expr> <Left> pumvisible() ? "<C-e>" :"<Left>"
" JsBeautify
" autocmd FileType javascript noremap <buffer> <F4> :call JsBeautify()<cr>
" for json
" autocmd FileType json noremap <buffer> <c-f> :call JsonBeautify()<cr>
" for jsx
" autocmd FileType jsx noremap <buffer> <c-f> :call JsxBeautify()<cr>
" for html
" autocmd FileType html noremap <buffer> <c-f> :call HtmlBeautify()<cr>
" for css or scss
" autocmd FileType css noremap <buffer> <c-f> :call CSSBeautify()<cr>
" NERDTree
let g:NERDTreeDirArrows=0
"nmap <C-b> :NERDTreeToggle<cr>
" map <F2> :NERDTreeToggle<CR>
" map <leader>nt :NERDTreeToggle<CR>
noremap <silent> <C-S-t> :NERDTreeToggle<CR>
let NERDTreeIgnore = ['^node_modules$', '\.pyc', '\.git$', '\~$', '\.swo$', '\.hg', '\.svn', '\.bzr', '\.DS_Store']
" Show ignored status. (a heavy feature may cost much more time)
" let g:NERDTreeShowIgnoredStatus = 1
let g:NERDTreeRespectWildIgnore = 1
let NERDTreeShowHidden = 1
" NERDTress File highlighting
function! NERDTreeHighlightFile(extension, fg, bg, guifg, guibg)
exec 'autocmd FileType nerdtree highlight ' . a:extension .' ctermbg='. a:bg .' ctermfg='. a:fg .' guibg='. a:guibg .' guifg='. a:guifg
exec 'autocmd FileType nerdtree syn match ' . a:extension .' #^\s\+.*'. a:extension .'$#'
endfunction
" call NERDTreeHighlightFile('jade', 'green', 'none', 'green', '#263238')
call NERDTreeHighlightFile('pug', 'green', 'none', 'green', '#263238')
" call NERDTreeHighlightFile('ini', 'yellow', 'none', 'yellow', '#263238')
" call NERDTreeHighlightFile('md', 'blue', 'none', '#3366FF', '#263238')
" call NERDTreeHighlightFile('yml', 'yellow', 'none', 'yellow', '#263238')
" call NERDTreeHighlightFile('config', 'yellow', 'none', 'yellow', '#263238')
" call NERDTreeHighlightFile('conf', 'yellow', 'none', 'yellow', '#263238')
" call NERDTreeHighlightFile('json', 'yellow', 'none', 'yellow', '#263238')
" call NERDTreeHighlightFile('html', 'yellow', 'none', 'yellow', '#263238')
" call NERDTreeHighlightFile('styl', 'cyan', 'none', 'cyan', '#263238')
" call NERDTreeHighlightFile('css', 'cyan', 'none', 'cyan', '#263238')
" call NERDTreeHighlightFile('scss', 'cyan', 'none', 'cyan', '#263238')
" call NERDTreeHighlightFile('coffee', 'Red', 'none', 'red', '#263238')
" call NERDTreeHighlightFile('js', 'Red', 'none', '#ffa500', '#263238')
" call NERDTreeHighlightFile('php', 'Magenta', 'none', '#ff00ff', '#263238')
" call NERDTreeHighlightFile('ds_store', 'Gray', 'none', '#686868', '#263238')
" call NERDTreeHighlightFile('gitconfig', 'Gray', 'none', '#686868', '#263238')
" call NERDTreeHighlightFile('gitignore', 'Gray', 'none', '#686868', '#263238')
" call NERDTreeHighlightFile('bashrc', 'Gray', 'none', '#686868', '#263238')
" call NERDTreeHighlightFile('bashprofile', 'Gray', 'none', '#686868', '#263238')
set autoread " automatically refresh any changed files
au CursorHold * checktime
set linespace=2
set showmode " always show what mode we're currently editing in
set nowrap " don't wrap lines
" set softtabstop=2 " when hitting <BS>, pretend like a tab is removed, even if spaces
" set smarttab
" Complete plugin options
" set complete+=kspell " Complete plugin option
" set completeopt=menuone,longest " Comoplete plugin option
" set tags=tags
" set shortmess+=ci " Complete plugin option
""""""""""""""""""""
" Softtabs, 2 spaces
""""""""""""""""""""
"set tabstop=2 " a tab is four spaces. fixes double indentation when copoying indented content. helps with snippets too
"set shiftwidth=2 " number of spaces to use for auto indenting. seems to add double indent when pasting something with indents.
"set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
"set expandtab " expand tabs by default (overloadable per file type later)
""""""""""""""""""""
" Hard tabs, 2 spaces
""""""""""""""""""""
set smartindent
set noexpandtab
set copyindent
set preserveindent
set softtabstop=0
set shiftwidth=4
set tabstop=4
" Fix for .sass file indentation nosmarttab and softtab=0
set nosmarttab
set softtabstop=0
set backspace=indent,eol,start " allow backspacing over anything in insert mode
set autoindent " always set autoindent on
set copyindent " copy the previous indention on autoindenting
""""""""""""""""""""
" Line number settings
""""""""""""""""""""
" Toggle absolute/relative line numbers
function! NumberToggle()
if(&relativenumber == 1)
set norelativenumber
else
set relativenumber
endif
endfunc
" nnoremap <C-n> :call NumberToggle()<cr>
" Disable relative line numbers in insert mode
autocmd InsertEnter * :set norelativenumber
autocmd InsertLeave * :set relativenumber
" Change cursor shape in different modes
" https://vim.fandom.com/wiki/Change_cursor_shape_in_different_modes
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_SR = "\<Esc>]50;CursorShape=2\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
" To help with testing libraries. Disables relative number lines automatically when leaving file focus
:au FocusLost * :set norelativenumber
:au FocusGained * :set relativenumber
set number " always show line numbers
set relativenumber " both number and relative enable sets you up in hybrid mode
""""""""""""""""""
"" End Line Number settings
""""""""""""""""""
"""""""""""""""""""""""""""
"" Airline Settings
"""""""""""""""""""""""""""
" let g:airline#extensions#tabline#enabled = 1 " Display all buffers when only one tab open
let g:airline_powerline_fonts = 1 " devfont setting for airline
"""""""""""""""""""""""""""
"" Airline Settings End
"""""""""""""""""""""""""""
"""""""""""""""""""""""""""
" Smooth-scroll
"""""""""""""""""""""""""""
" Seems to not work with MacVim
noremap <silent> <c-u> :call smooth_scroll#up(&scroll, 0, 2)<CR>
noremap <silent> <c-d> :call smooth_scroll#down(&scroll, 0, 2)<CR>
noremap <silent> <c-b> :call smooth_scroll#up(&scroll*2, 0, 4)<CR>
noremap <silent> <c-f> :call smooth_scroll#down(&scroll*2, 0, 4)<CR>
set ignorecase " ignore case when searching
set smartcase " ignore case if search patter is all lowercase
set timeout timeoutlen=500 ttimeoutlen=100
set autowrite " save on buffer switch
set mouse=a " enable mouse
" ----------------------------Key Mappings----------------------------
" Append ; to the end of line from insert mode
inoremap ;; <C-o>A;
" Copy to clipboard
" vmap <C-c> "=y
vmap <C-c> "+y
" Comment word
nmap <leader>cc <esc>hhvawgc
" Down is really the next line helps with line wraps
nnoremap j gj
nnoremap k gk
" Move v-selected lines up or down
xnoremap K :move '<-2<CR>gv-gv
xnoremap J :move '<+1<CR>gv-gv
"Easy escaping to normal model
imap jj <esc>
" Auto change directory to match current file , cd
nnoremap ,cd :cd %:p:h<CR>:pwd<CR>
" Enable Disable Auto Indent. Already set to always on with set autoindent
map <leader>i :setlocal autoindent<CR>
map <leader>I :setlocal noautoindent<CR>
" Enable spell checking\, s for spell check
map <leader>s :setlocal spell! spelllang=en_us<CR>
" Reselects indented lines
" vnoremap > >gv
" Alias replace all to S. At command type replace string followed by
" /replacestring
" nnoremap S :%s//gI<left><left><left>
nmap <leader>rp :%s//gI<left><left><left>
" Load the current file buffer in Chrome
nmap ,gc :!open -a Google\ Chrome<cr>
" Show (partial) command in the status line
" ---------------------------- Functions ----------------------------
set pastetoggle=<F3> " turn off auto-indent when pasting text
call togglebg#map("<F5>") " Toggle background dark or light
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" UI CONFIG
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set showcmd
"easier window navigation
" nmap <C-h> <C-w>h
" nmap <C-j> <C-w>j
" nmap <C-k> <C-w>k
" nmap <C-l> <C-w>l
nmap <C-S-h> <C-w>h
nmap <C-S-j> <C-w>j
nmap <C-S-k> <C-w>k
nmap <C-S-l> <C-w>l
" noremap <silent> <C-S-Left> :vertical resize -5<CR>
" noremap <silent> <C-S-Right> :vertical resize +5<CR>
"Resize vsplit
" nmap <C-v> :vertical resize +5<cr>
" Create split below
" nmap :sp :rightbelow sp<cr>
" Shortcut split opening
nnoremap <leader>h :split<Space>
nnoremap <leader>v :vsplit<Space>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Leader Mappings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" switch between last buffer
nnoremap <leader><leader> <C-^>
" make current split window be only window
" nnoremap <leader>o :only<CR>
" make current pane be the only one. works better than the :only
nnoremap <leader>o :tabnew %<CR>
" saves and exit buffer
nnoremap <leader>x :xit<CR>
" quit buffer
nnoremap <leader>q :quit<CR>
" Quickly edit/reload the vimrc file
" nmap <silent> <leader>ev :e $MYVIMRC<CR>
" nmap <silent> <leader>sv :so $MYVIMRC<CR>
nmap :ev :e $MYVIMRC<CR>
nmap :sv :so $MYVIMRC<CR>
" Fast saves
" nmap <leader>w :w!<cr>
nmap <leader>w :update<cr>
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" MOVEMENT
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" inoremap <silent> <C-S-h> <left>
" inoremap <silent> <C-S-l> <right>
inoremap <C-S-h> <left>
inoremap <C-S-l> <right>
" move to beginning / end of line
nnoremap B ^
nnoremap E $
" $/^ doesn't do anything
"nnoremap $ <nop>
"nnoremap ^ <nop>
" Quickly go forward or backward to buffer
nmap :bp :BufSurfBack<cr>
" nnoremap :bp :BufSurfBack<cr>
nmap :bn :BufSurfForward<cr>
" noremap :bn :BufSurfForward<cr>
" Switch to previous buffer
" nmap <C-e> :e#<CR>
" Cycle between all open buffers
noremap <C-n> :bnext<CR>
noremap <C-p> :bprev<CR>
highlight Search cterm=underline
set cursorline
set nobackup
set nowritebackup
set noswapfile
" Swap files out of the project root and into vim directory
" set backupdir=~/.vim/backup//
" set directory=~/.vim/swap//
" Run PHPUnit tests
" map <Leader>t :!phpunit %<cr>
" Easy motion stuff
"let g:EasyMotion_leader_key = '<leader>'
set laststatus=2 " Always show the statusline
set encoding=utf8 " Necessary to show Unicode glyphs
set noshowmode " Hide the default mode text (e.g. -- INSERT -- below the statusline)
" Remove search results
" command! H let @/=""
" Better way to remove search results, keeps search history intact
nmap <silent> ,/ :nohlsearch<CR>
"""""""""""""""""""""""""
"""""""""""""""""""""""""
" LARAVEL SHORTCUTS
"""""""""""""""""""""""""
"""""""""""""""""""""""""
abbrev gm !php artisan generate:model
abbrev gc !php artisan generate:controller
abbrev gmig !php artisan generate:migration
nmap <leader>lr :e app/routes.php<cr>
nmap <leader>lca :e app/config/app.php<cr>81Gf(%O
nmap <leader>lcd :e app/config/database.php<cr>
nmap <leader>lc :e composer.json<cr>
" ----------------------- Basic AutoCmd -----------------------------------
"
" Auto-remove trailing spaces on save. Php files only
autocmd BufWritePre *.php :%s/\s\+$//e
autocmd BufWritePre *.css :%s/\s\+$//e
" Auto-remove trailing spaces on save
" Vertically center document when entering Insert mode
autocmd InsertEnter * norm zz
" Edit todo list file for every project
nmap ,todo :e todo.txt<cr>
" CtrlP Stuff
" nano
" let g:ctrlp_map = '<Leader>t'
" let g:ctrlp_working_path_mode = 'ra'
" let g:ctrlp_custom_ignore = '\v\~$|\.(o|swp|pyc|flv|mp4|wav|mp3|ogg|blend)$|(^|[/\\])\.(hg|git|bzr|dist)($|[/\\])|__init__\.py'
" nmap <Leader>b :CtrlPBuffer<CR>
" Ignore files in .gitignore
" let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
" Familiar command for file/symbol browsing
" map <D-p> :CtrlP<cr>
" map <C-r> :CtrlPBufTag<cr>
" I don't want to pull up thse folder/files when calling CtrlP
set wildignore+=*/vendor/**
set wildignore+=*/public/forum/**
" set wildignore+=*/dist/**
set wildignore+=*/node_modules/**
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
" SnipMate
" imap <leader>ss <esc>a<Plug>snipMateNextOrTrigger
" smap <leader>ss <Plug>snipMateNextOrTrigger
"""""""""""""""""""""""""
"""""""""""""""""""""""""
" OPEN EDIT FILES
"""""""""""""""""""""""""
"""""""""""""""""""""""""
nmap :etn :e ~/Library/Mobile Documents/com~apple~CloudDocs/Joel/Documents/Notes/tmux.md<cr>
nmap :etc :e ~/.tmux.conf<cr>
nmap :egn :tabnew ~/Documents/Notes/git_notes.txt<cr>
nmap :is :set list lcs=tab:\|\<cr>
nmap :ih :set list lcs=tab:\ \<cr>
" Open splits
nmap vs :vsplit<cr>
nmap sp :split<cr>
"Create/edit file in the current directory
nmap :ed :edit %:p:h/
" emmet key remap to tab and still keep tab indent support
" imap <expr> <tab> emmet#expandAbbrIntelligent("\<tab>")
" emmet trigger remap needs comma after
" imap hh <C-y>
" Nano adds
" let g:user_emmet_leader_key='<C-Z>'
" let g:user_emmet_leader_key='<leader>e,'
let g:user_emmet_leader_key=','
" SYNTASTIC
"let g:syntastic_html_tidy_exec = 'tidy5'
"set statusline+=%#warningmsg#
"set statusline+=%{SyntasticStatuslineFlag()}
"set statusline+=%*
"let g:syntastic_always_populate_loc_list = 1
"let g:syntastic_auto_loc_list = 1
"let g:syntastic_check_on_open = 1
"let g:syntastic_check_on_wq = 0
"" let g:syntastic_javascript_checkers = ['eslint'] "use global eslint
"" let g:syntastic_javascript_checkers = ['eslint'] "use local eslint
"" let g:syntastic_javascript_eslint_exe = '$(npm bin)/eslint'
"" let g:syntastic_javascript_eslint_exe = 'npm run lint --'
"let g:syntastic_javascript_checkers=['eslint']
"let g:syntastic_javascript_eslint_exe = '$(npm bin)/eslint'
" source ~/coc.vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment