bebraw
6/8/2012 - 11:11 AM

Just my current .vimrc.

Just my current .vimrc.

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:.