Created
March 25, 2013 03:24
-
-
Save Battleroid/5234728 to your computer and use it in GitHub Desktop.
vimrc from server, messy as crap.
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
"basics | |
set nu | |
set bs=2 | |
set t_Co=256 | |
set nocp | |
set tabstop=2 | |
set softtabstop=2 | |
set shiftwidth=2 | |
set smarttab | |
set ignorecase | |
set smartcase | |
set hlsearch | |
set incsearch | |
set wrapscan | |
set showmatch | |
set mat=2 | |
set ruler | |
"set noexpandtab | |
filetype on | |
filetype plugin on | |
filetype indent on | |
set autoread | |
set backup | |
set backupdir=~/.vim/backup,/tmp | |
set undofile | |
set undodir=~/.vim/undo,/tmp | |
syntax on | |
set cursorline | |
set autoindent | |
set smartindent | |
set wrap | |
set foldenable | |
set foldmethod=marker | |
set foldlevel=100 | |
set foldopen=block,hor,mark,percent,quickfix,tag | |
set cindent | |
set nocompatible | |
"bundles | |
set rtp+=~/.vim/bundle/vundle/ "setup vundle | |
call vundle#rc() "run it and manage bundles | |
Bundle 'gmarik/vundle' | |
Bundle 'tpope/vim-surround' | |
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} | |
Bundle 'Markdown' | |
Bundle 'colormenu.vim' | |
Bundle 'Lokaltog/vim-powerline' | |
Bundle 'tomasr/molokai' | |
Bundle 'neeee/term.vim' | |
Bundle 'rodnaph/vim-color-schemes' | |
Bundle 'SingleCompile' | |
Bundle 'nathanaelkane/vim-indent-guides' | |
Bundle 'tpope/vim-markdown' | |
Bundle 'goatslacker/mango.vim' | |
"Bundle 'Rip-Rip/clang_complete' | |
"Bundle 'OmniCppComplete' | |
"Need time to learn how to use it | |
"Bundle 'vim-scripts/c.vim' | |
"Bundle specifics | |
let g:Powerline_symbols = 'fancy' | |
"makefile information | |
nmap <F9> :SCCompile<cr> | |
nmap <F10> :SCCompileRun<cr> | |
let g:indent_guides_start_level = 2 | |
"Templates | |
autocmd! BufNewFile * silent! 0r ~/.vim/skel/tmpl.%:e | |
"Fix home/end | |
imap <esc>OH <esc>0i | |
cmap <esc>OH <home> | |
nmap <esc>OH 0 | |
nmap <esc>OF $ | |
imap <esc>OF <esc>$a | |
cmap <esc>OF <end> | |
"command | |
cmap w!! %!sudo tee > /dev/null % | |
"remap autocompletion | |
imap <C-Space> <C-x><C-o> | |
imap <C-@> <C-Space> | |
"folding - za zR zM | |
set foldmethod=indent | |
set foldnestmax=10 | |
set nofoldenable | |
set foldlevel=1 | |
"colorscheme jellybeans | |
"colorscheme jellybeans-Night | |
colorscheme jellybeans | |
"Set bg | |
"set background=dark |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment