Skip to content

Instantly share code, notes, and snippets.

@lwakefield
Created December 11, 2019 12:36
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 lwakefield/cfb09c89d4842840b155e2a5eb2d0740 to your computer and use it in GitHub Desktop.
Save lwakefield/cfb09c89d4842840b155e2a5eb2d0740 to your computer and use it in GitHub Desktop.
init.vim
call plug#begin('~/.vim/plugged')
" auto complete
Plug 'neoclide/coc.nvim', {'branch': 'release'} # auto-complete
" fuzzy file opener
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
" horizontal alignment
Plug 'junegunn/vim-easy-align'
" syntax highlighting for everything
Plug 'sheerun/vim-polyglot'
" auto-detect indent sizes
Plug 'tpope/vim-sleuth'
" change/add/delete braces/quotes/etc
Plug 'tpope/vim-surround'
call plug#end()
command! Def call CocAction('jumpDefinition')
command! Ref call CocAction('jumpReferences')
command! Refs call CocAction('jumpReferences')
command! Rename call CocAction('rename')
command! Hover call CocAction('doHover')
command! Ga !git add %
command! Gb term git blame %
command! F Files
command! B Buffers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment