Last active
May 19, 2019 20:41
-
-
Save ansrivas/ffd5ab6f4d82c6b2af63 to your computer and use it in GitHub Desktop.
set vim-tab spaces to 4
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
" Specify a directory for plugins | |
" - For Neovim: ~/.local/share/nvim/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' | |
" Polyglot - adds a bunch of syntax handling for different languages | |
" and tools, check if new languages are included before adding them | |
" manually. | |
Plug 'sheerun/vim-polyglot' | |
" 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' } | |
"F6 to toggle tree view with F6 | |
nmap <silent> <F6> :NERDTreeToggle<CR> | |
"Set F2 to put the cursor to the nerdtree | |
nmap <silent> <F2> :NERDTreeFind<CR> | |
Plug 'maralla/completor.vim' | |
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': '*', 'do': ':GoInstallBinaries' } | |
" Plugin options | |
Plug 'stamblerre/gocode', { 'rtp': 'vim', 'do': '~/.vim/plugged/gocode/vim/symlink.sh' } | |
" Rust yeah? | |
Plug 'rust-lang/rust.vim' | |
Plug 'racer-rust/vim-racer' | |
let g:rustfmt_autosave = 1 | |
set hidden | |
let g:racer_cmd = "~/.cargo/bin/racer" | |
let g:racer_experimental_completer = 1 | |
Plug 'maralla/completor.vim' | |
" Plugin outside ~/.vim/plugged with post-update hook | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'junegunn/fzf.vim' | |
Plug '~/.fzf' | |
let g:fzf_action = { | |
\ 'ctrl-s': 'split', | |
\ 'ctrl-v': 'vsplit' | |
\ } | |
nnoremap <c-t> :FZF<cr> | |
augroup fzf | |
autocmd! | |
autocmd! FileType fzf | |
autocmd FileType fzf set laststatus=0 noshowmode noruler | |
\| autocmd BufLeave <buffer> set laststatus=2 showmode ruler | |
augroup END | |
Plug 'itchyny/lightline.vim' | |
Plug 'terryma/vim-multiple-cursors' | |
" Initialize plugin system | |
call plug#end() | |
filetype plugin on | |
set laststatus=2 | |
syntax on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment