Created
March 29, 2018 23:42
-
-
Save tsaiDavid/db08cdd30be9d03c100ee919ba2a6949 to your computer and use it in GitHub Desktop.
.config/nvim/init.vim for paul
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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