Skip to content

Instantly share code, notes, and snippets.

@zhouji
Forked from stupend/.vimrc
Last active October 13, 2015 03:08
Show Gist options
  • Save zhouji/4129663 to your computer and use it in GitHub Desktop.
Save zhouji/4129663 to your computer and use it in GitHub Desktop.
My Vim config file
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'python.vim'
Bundle 'taglist.vim'
Bundle 'TWiki-Syntax'
Bundle 'Markdown'
Bundle 'OmniCppComplete'
Bundle 'scrooloose/nerdtree'
colorscheme desert
nnoremap <silent> <F5> :NERDTree<CR>
" next tab
map <F7> :tabn<CR>
" previous tab
map <F8> :tabp<CR>
" Close Tab abd save
map <F9> ZZ
map <F3> :TlistOpen <CR>
map <C-F12> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
" Make shift-insert work like in Xterm
map <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse>
set wildignore+=*/tmp/*,*.so,*.swp,*.zip
"colorscheme wombat256mod
set showmode
set nobackup
filetype plugin on
set fileencoding=utf-8
set encoding=utf-8
set expandtab
set ai
set ts=4
set sts=4
"set default to ignore case when do search
set ic
set directory^=/tmp// "put all swap files together in one place
set ttymouse=xterm2
set mouse=a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment