Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a03b085239
Fetching contributors…

Cannot retrieve contributors at this time

104 lines (81 sloc) 2.689 kb
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
Bundle 'https://github.com/kien/ctrlp.vim'
Bundle 'https://github.com/yandy/vim-omnicppcomplete.git'
Bundle 'git://github.com/tpope/vim-surround.git'
Bundle 'AutoComplPop'
Bundle 'git://github.com/tpope/vim-fugitive.git'
Bundle 'git://github.com/Rip-Rip/clang_complete.git'
Bundle 'git://github.com/scrooloose/syntastic.git'
Bundle 'git://github.com/powerman/vim-plugin-viewdoc.git'
set ts=4
set hidden
set shiftwidth=4
set ai " auto indenting
set cindent
set history=100 " keep 100 lines of history
set ruler " show the cursor position
syntax on " syntax highlighting
set hlsearch " highlight the last searched term
filetype plugin indent on
set rnu
set ignorecase
au BufEnter *.hs set expandtab
au BufEnter *.h set noexpandtab
au BufEnter *.c set noexpandtab
au BufEnter *.cpp set noexpandtab
au BufEnter *.py set noexpandtab
au BufEnter *.sh set noexpandtab
au BufEnter *.java set noexpandtab
au BufEnter *.rb set expandtab
au BufEnter *.rb set smartindent
au BufEnter *.rb set ts=2
au BufEnter *.rb set sw=2
au BufEnter *.rb set softtabstop
if has("gui_running")
colorscheme sonofobsidian
else
colorscheme 256-grayvim
endif
set guifont=ProggyCleanTT\ 12.5
map <F12> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
inoremap <C-Space> <C-x><C-o>
inoremap <Nul> <C-x><C-o>
noremap <Space> za
set tags+=~/.vim/tags/cpp
let OmniCpp_ShowPrototypeInAbbr=1
let OmniCpp_MayCompleteDot=1
let OmniCpp_MayCompleteArrow=1
let OmniCpp_MayCompleteScope=1
set completeopt=menuone,menu,longest,preview
set foldmethod=manual
set foldnestmax=10
set nofoldenable
set foldlevel=1
set nowrap
let mapleader=","
nnoremap <leader>e :CtrlP<cr>
nnoremap <leader>b :CtrlPBuffer<cr>
nnoremap <leader>d :CtrlPDir<cr>
nnoremap <leader>m :CtrlPMRU<cr>
nnoremap <leader>1 :diffget //2<cr>:diffupdate<cr>
nnoremap <leader>3 :diffget //3<cr>:diffupdate<cr>
nnoremap <leader>s :Gstatus<cr>
nnoremap <leader>c :Gcommit<cr>
nnoremap <leader>, :b#<cr>
nnoremap <leader>q <C-w>c
nnoremap <leader>v :vsplit<cr>
inoremap jj <ESC>
autocmd BufWinLeave * if expand("%") != "" | mkview | endif
autocmd BufWinEnter * if expand("%") != "" | loadview | endif
au BufNewFile,BufRead,BufEnter *.java inoremap <C-Space> <C-x><C-u>
au BufNewFile,BufRead,BufEnter *.java inoremap <Nul> <C-x><C-u>
highlight Pmenu ctermbg=grey
highlight PmenuSel ctermfg=black ctermbg=yellow
let g:viewdoc_open="belowright vnew"
let g:viewdoc_only=1
Jump to Line
Something went wrong with that request. Please try again.