Last active
November 3, 2016 00:04
-
-
Save shiva/1a163801b70597033c5bdbd71f32e02e to your computer and use it in GitHub Desktop.
vimrc at work
This file contains 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
" Forget being compatible with good ol' vi | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/ | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'altercation/vim-colors-solarized' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
" Snippets | |
Plugin 'SirVer/ultisnips' | |
Plugin 'honza/vim-snippets' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'ctrlpvim/ctrlp.vim' | |
Plugin 'tpope/vim-sensible' | |
Plugin 'tpope/vim-markdown' | |
Plugin 'tpope/vim-surround' | |
Plugin 'vim-scripts/DoxygenToolkit.vim' | |
" Plugin 'steffanc/cscopemaps.vim' | |
"Plugin 'file:///Users/shiva/dev/git/omi.git/momr/' | |
call vundle#end() " required | |
filetype plugin indent on " required | |
"set t_Co=256 | |
"color jellybeans | |
set background=dark | |
colorscheme solarized | |
" Turn on that syntax highlighting | |
syntax enable | |
" Turn on omnicomplete | |
" set omnifunc=syntaxcomplete#Complete | |
" Why is this not a default | |
set hidden | |
" Don't update the display while executing macros | |
set lazyredraw | |
" At least let yourself know what mode you're in | |
set showmode | |
" Enable enhanced command-line completion. Presumes you have compiled | |
" with +wildmenu. See :help 'wildmenu' | |
set wildmenu | |
" Let's make it easy to edit and source vimrc | |
nmap <silent> ,ev :e $MYVIMRC<cr> | |
nmap <silent> ,sv :so $MYVIMRC<cr> | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
" map NERDTree to Ctrl+n | |
map <C-n> :NERDTreeToggle<cr> | |
" Set default undo locations" | |
set dir=~/.vimswap//,/var/tmp//,/tmp//,. | |
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe. | |
let g:UltiSnipsExpandTrigger="<tab>" | |
let g:UltiSnipsJumpForwardTrigger="<c-b>" | |
let g:UltiSnipsJumpBackwardTrigger="<c-z>" | |
" If you want :UltiSnipsEdit to split your window. | |
let g:UltiSnipsEditSplit="vertical" | |
" Doxygen | |
map <S-F7> :Dox<CR> | |
imap <S-F7> <ESC>:Dox<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment