Created
February 11, 2013 07:34
-
-
Save mrmrs/4753135 to your computer and use it in GitHub Desktop.
My .vimrc file. More comments needed.
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
set nocompatible " Uses vim vs vi settings must be set first | |
syntax on " Turn on syntax highlighting for recognized filetypes | |
set title | |
set history=1000 " I fuckup a lot. I need more than 20 undos. | |
set wildmenu " Show me how many options I have to choose from on autocomplete | |
set number " Displays numbers on left of file | |
set visualbell " If I never hear that fucking beep again I'll be mad stocked. Unless it's in electronic music. Then it's fine. | |
set autoread " Reload files changed outside of vim | |
set hidden " Buffers can exist without being in window - hit :bn or :bp to toggle between buffers | |
set incsearch " find next match as we type the search | |
set hlsearch " Hilight searches | |
set ic " Ignore the case when searching | |
set noswapfile | |
set nobackup | |
set nowb | |
silent !mkdir ~/.vim/backups > /dev/null 2>&1 | |
set undodir=~/.vim/backups | |
set undofile | |
set autoindent | |
set smartindent | |
set smarttab | |
set shiftwidth=2 | |
set softtabstop=2 | |
set tabstop=2 | |
set expandtab | |
set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P | |
au BufEnter *.css set nocindent | |
au BufLeave *.css set cindent | |
au BufEnter *.scss set nocindent | |
au BufLeave *.scss set cindent | |
autocmd BufNewFile,BufRead *.scss set ft=scss.css | |
" Remap Tab navigation | |
nnoremap th :tabfirst<CR> | |
nnoremap tj :tabnext<CR> | |
nnoremap tk :tabprev<CR> | |
nnoremap tl :tablast<CR> | |
hi LineNr ctermfg=darkgrey ctermbg=black | |
let g:NERDTreeWinPos = "right" " This puts the nerdtree window on the right | |
filetype plugin on | |
filetype indent on | |
map <Esc><Esc> :w<CR> | |
call pathogen#infect() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment