Created
June 26, 2019 02:25
-
-
Save chichunchen/28edea6220be9eddb6a012de1d6f6763 to your computer and use it in GitHub Desktop.
my vimrc
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
set number | |
set shiftwidth=2 | |
set tabstop=2 | |
:syntax on | |
set autoindent | |
set smartindent | |
" highlight matching braces | |
set showmatch | |
set scrolloff=6 | |
" intelligent comments | |
set comments=sl:/*,mb:\ *,elx:\ */ | |
autocmd BufEnter *.tpp :setlocal filetype=cpp | |
autocmd BufEnter *.hpp :setlocal filetype=cpp | |
" Install Plugins | |
call plug#begin('~/.vim/plugged') | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'junegunn/fzf.vim' | |
Plug 'kien/rainbow_parentheses.vim' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
call plug#end() | |
" Plugin configs | |
map <C-n> :NERDTreeToggle<CR> | |
" fzf | |
map <C-e> :Files<CR> | |
" auto completion | |
let g:UltiSnipsExpandTrigger = "<C-l>" | |
let g:UltiSnipsJumpForwardTrigger = "<C-j>" | |
let g:UltiSnipsJumpBackwardTrigger = "<C-k>" | |
au VimEnter * RainbowParenthesesToggle | |
au Syntax * RainbowParenthesesLoadRound | |
au Syntax * RainbowParenthesesLoadSquare | |
au Syntax * RainbowParenthesesLoadBraces | |
let g:airline#extensions#tabline#enabled = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment