Created
June 24, 2013 00:04
-
-
Save franbull/5847002 to your computer and use it in GitHub Desktop.
My awesome .vimrc
This file contains hidden or 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
| silent !stty -ixon > /dev/null 2>/dev/null | |
| set nocompatible " be iMproved | |
| filetype off " required! | |
| let python_highlight_all=1 | |
| syntax on | |
| filetype indent plugin on | |
| let mapleader = "," | |
| set ignorecase | |
| set smartcase | |
| set title | |
| set scrolloff=3 | |
| set hidden | |
| set hlsearch | |
| set mouse=a | |
| set tags=./tags;~ | |
| set listchars=tab:>. | |
| set background=dark | |
| set showmode | |
| nnoremap ; : | |
| nnoremap <C-j> :bp<CR> | |
| nnoremap <C-K> :bn<CR> | |
| inoremap <C-s> <C-o>:w<CR> | |
| nnoremap <C-s> :w<CR> | |
| nnoremap <silent> <C-g> :CommandT<CR> | |
| nnoremap <silent> <C-b> :CommandTBuffer<CR> | |
| nnoremap <C-f> :execute "vimgrep /" . expand("<cword>") . "/j **" <Bar> cw<CR> | |
| nnoremap <Leader>k :cn<CR> | |
| nnoremap <Leader>j :cp<CR> | |
| nnoremap <F2> :set invpaste paste?<CR> | |
| nnoremap <F3> :set nonumber!<CR>:set foldcolumn=0<CR> | |
| au BufWritePost <silent> :!ctags-proj.sh<CR> | |
| au BufRead,BufNewFile *.py set shiftwidth=4 | |
| au BufRead,BufNewFile *.py set expandtab | |
| au BufNewFile *.py,*.pyw,*.c,*.h set fileformat=unix | |
| set rtp+=~/.vim/bundle/vundle/ | |
| call vundle#rc() | |
| Bundle 'gmarik/vundle' | |
| " My Bundles here: | |
| " | |
| Bundle 'Valloric/YouCompleteMe' | |
| Bundle 'git://git.wincent.com/command-t.git' | |
| Bundle 'git://github.com/scrooloose/syntastic.git' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment