Source

dotfiles / .vimrc

Full commit
filetype off
"call pathogen#runtime_append_all_bundles()
syntax on
colorscheme custom
set encoding=utf-8
nnoremap / /\v
vnoremap / /\v
let mapleader=","
"nmap <leader>t :TlistToggle<CR>
nmap <leader>sj :set syntax=htmljinja<CR>
nmap <leader>sd :set syntax=htmldjango<CR>
nmap <leader>pdb Oimport pdb; pdb.set_trace()<ESC>
set nocompatible
set number
set incsearch
set hlsearch
set ignorecase
set smartcase
set gdefault
set smartindent
set expandtab
"set textwidth=79
set colorcolumn=80
set tabstop=8
set softtabstop=4
set shiftwidth=4
"set foldmethod=expr
let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1
autocmd BufNewFile,BufRead *.less setlocal ft=css
autocmd FileType html setlocal shiftwidth=2 tabstop=4 softtabstop=2
autocmd FileType htmldjango setlocal shiftwidth=2 tabstop=4 softtabstop=2
autocmd FileType xml setlocal shiftwidth=2 tabstop=4 softtabstop=2
autocmd FileType css setlocal shiftwidth=2 tabstop=4 softtabstop=2
autocmd FileType rst setlocal shiftwidth=2 tabstop=6 softtabstop=3
" menu for autocompletion
set wildmenu
set wildmode=list:longest,full
" mouse for local terminal
set mouse=nvc
" highlight trailing spaces (not for the line which is currently edited)
" http://vim.wikia.com/wiki/Highlight_unwanted_spaces
au BufWinEnter * match Error / \+$/
au InsertEnter * match Error / \+\%#\@<!$/
au InsertLeave * match Error / \+$/
" highlight pythons self
autocmd FileType python syn keyword Keyword self
" XXX: vim thinks pythons True and False are functions
autocmd FileType python syn keyword Boolean True
autocmd FileType python syn keyword Boolean False
autocmd FileType python syn keyword Boolean None