Skip to content

Instantly share code, notes, and snippets.

@zhangysh1995
Created May 17, 2022 11:36
Show Gist options
  • Save zhangysh1995/e4d24a3bd3899ede4c067131b6d027c8 to your computer and use it in GitHub Desktop.
Save zhangysh1995/e4d24a3bd3899ede4c067131b6d027c8 to your computer and use it in GitHub Desktop.
my vimrc
set cursorline
"set number
syntax enable
"" gtags
""" Install gtags, global, cscope
""" Run in vim: `cs add GTAG` under the source dir
let GtagsCscope_Auto_Load = 1
let CtagsCscope_Auto_Map = 1
let GtagsCscope_Quiet = 1
set csprg='gtags-cscope'
filetype plugin indent on
" On pressing tab, insert 2 spaces
set expandtab
" " show existing tab with 2 spaces width
set tabstop=2
set softtabstop=2
" " when indenting with '>', use 2 spaces width
set shiftwidth=2
" " keep indent from the previous line
set autoindent
set nocompatible " be iMproved, required
filetype on " required
filetype plugin indent on
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" " alternatively, pass a path where Vundle should install plugins
" "call vundle#begin('~/some/path/here')
"
" " let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'https://github.com/tpope/vim-fugitive'
Plugin 'git://git.wincent.com/command-t.git'
Plugin 'https://github.com/junegunn/vim-easy-align'
Plugin 'https://github.com/mhinz/vim-grepper'
Plugin 'https://github.com/preservim/nerdtree'
Plugin 'https://github.com/octol/vim-cpp-enhanced-highlight'
Plugin 'https://github.com/wesQ3/vim-windowswap'
"
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" " To ignore plugin indent changes, instead use:
filetype plugin on
" "
" " Brief help
" " :PluginList - lists configured plugins
" " :PluginInstall - installs plugins; append `!` to update or just
" :PluginUpdate
" " :PluginSearch foo - searches for foo; append `!` to refresh local cache
" " :PluginClean - confirms removal of unused plugins; append `!` to
" auto-approve removal
" "
" " see :h vundle for more details or wiki for FAQ
" " Put your non-Plugin stuff after this lin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment