Skip to content

Instantly share code, notes, and snippets.

@liweinan
Created August 22, 2020 06:10
Show Gist options
  • Save liweinan/27f1dbebcd834b036f5454f50604d6b2 to your computer and use it in GitHub Desktop.
Save liweinan/27f1dbebcd834b036f5454f50604d6b2 to your computer and use it in GitHub Desktop.
.vimrc
set nocompatible " be iMproved, required
filetype off " required
syntax on
let g:python3_host_prog = '/Users/weli/.pyenv/versions/3.8.5/bin/python'
let g:python_host_prog = '/Users/weli/.pyenv/versions/2.7.18/bin/python'
nmap <C-n> :NERDTreeToggle<CR>
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug 'junegunn/vim-easy-align'
" Any valid git URL is allowed
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
" 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'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Plug 'wincent/command-t', {'branch': 'release'}
" Initialize plugin system
call plug#end()
@liweinan
Copy link
Author

$ cat ~/.config/nvim/init.vim                                                                                                                                                                               14:09:55
source ~/.vimrc
$                                                                                                                                                                                                           14:10:31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment