Skip to content

Instantly share code, notes, and snippets.

@tsaiDavid
Created March 29, 2018 23:42
Show Gist options
  • Save tsaiDavid/db08cdd30be9d03c100ee919ba2a6949 to your computer and use it in GitHub Desktop.
Save tsaiDavid/db08cdd30be9d03c100ee919ba2a6949 to your computer and use it in GitHub Desktop.
.config/nvim/init.vim for paul
" Script to automatically load for NeoVim using `vim-plug`
" https://github.com/junegunn/vim-plug [ Paul, this is as simple vim plugin manager ]
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
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
" call plug#begin('~/.vim/plugged')
call plug#begin('~/.local/share/nvim/plugged')
" Vim Surround
" https://vimawesome.com/plugin/surround-vim
Plug 'tpope/vim-surround'
" Vim Commentary
" https://github.com/tpope/vim-commentary
Plug 'tpope/vim-commentary'
" Vim Sneak
" https://github.com/justinmk/vim-sneak
" Plug 'justinmk/vim-sneak'
" Vim EasyMotion
" https://github.com/easymotion/vim-easymotion
Plug 'easymotion/vim-easymotion'
" Vim Numbertoggle
" https://github.com/jeffkreeftmeijer/vim-numbertoggle
Plug 'jeffkreeftmeijer/vim-numbertoggle'
" Vim `Ctrl + P`
" https://github.com/ctrlpvim/ctrlp.vim
" Plug 'ctrlpvim/ctrlp.vim'
" ignore files in .gitignore
" let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
" Syntax Plugins
" If you're using oni or whatever, you don't even need this
" Plug 'pangloss/vim-javascript'
" Plug 'mxw/vim-jsx'
" Set hybrid line-numbers [ seriously game changing, maybe try it once! ]
set number relativenumber
" Remap `esc` to `kj` [ my favorite way to escape ]
imap kj <Esc>
" You can replace the below or just remove it if you do not wish to have a theme
Plug 'mhartington/oceanic-next'
" Initialize plugin system
call plug#end()
" Or if you have Neovim >= 0.1.5
if (has("termguicolors"))
set termguicolors
endif
" Theme - get rid of colorscheme if you don't want it
syntax enable
colorscheme OceanicNext
" Examples of how to use `vim-plug` below...
" Multiple Plug commands can be written in a single line using | separators
" Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
" On-demand loading
" Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
" Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
" Using a non-master branch
" Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' }
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
" Plug 'fatih/vim-go', { 'tag': '*' }
" Plugin options
" Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
" Plugin outside ~/.vim/plugged with post-update hook
" Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
" Unmanaged plugin (manually installed and updated)
" Plug '~/my-prototype-plugin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment