Skip to content

Instantly share code, notes, and snippets.

@chichunchen
Created June 26, 2019 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chichunchen/28edea6220be9eddb6a012de1d6f6763 to your computer and use it in GitHub Desktop.
Save chichunchen/28edea6220be9eddb6a012de1d6f6763 to your computer and use it in GitHub Desktop.
my vimrc
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