Created
June 8, 2012 11:11
-
-
Save bebraw/2895025 to your computer and use it in GitHub Desktop.
Just my current .vimrc.
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
colorscheme koehler | |
filetype on | |
filetype plugin on | |
"" http://mirnazim.org/writings/vim-plugins-i-use/ | |
call pathogen#runtime_append_all_bundles() | |
call pathogen#helptags() | |
autocmd FileType html,htmldjango,jinjahtml,eruby,mako let b:closetag_html_style=1 | |
autocmd FileType html,xhtml,xml,htmldjango,jinjahtml,eruby,mako source ~/.vim/bundle/closetag/plugin/closetag.vim | |
"" Leader mappings | |
let mapleader = "," | |
let maplocalleader = ";" | |
set cindent | |
set sw=4 | |
syntax on | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set textwidth=79 | |
set pastetoggle=<F3> | |
set number | |
nnoremap <F2> :set nonumber!<CR> | |
set showmatch | |
set autoindent | |
set ruler | |
set hlsearch | |
set incsearch | |
abbr fn function | |
map <Leader>r *Nciw | |
inoremap <Tab> <Esc> | |
command W w | |
command Q q | |
command WQ wq | |
command Wq wq | |
command Qa qa | |
command QA qa | |
command Wa wa | |
command WA wa | |
noremap ö l | |
noremap l k | |
noremap k j | |
noremap j h | |
" http://stackoverflow.com/questions/526858/how-do-i-make-vim-do-normal-bash-like-tab-completion-for-file-names | |
set wildmode=longest,list | |
" spell-checking | |
set spelllang=en_us | |
" show trailing whitespace | |
set list | |
set listchars=tab:>.,trail:.,extends:#,nbsp:. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment