Skip to content

Instantly share code, notes, and snippets.

@bebraw bebraw/.vimrc
Created Jun 8, 2012

Embed
What would you like to do?
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:.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.