"---------------------------------------------------- " File: .vimrc " Version: 0.1.1 " Author: Florian "Bluewind" Pritz "---------------------------------------------------- set nocompatible set encoding=utf-8 " unicode encoding set t_Co=256 set nobackup set expandtab set tabstop=2 set shiftwidth=2 set softtabstop=2 set ruler " show me where the cursor is set rulerformat=%l/%L(%p%%),%c " a better ruler set showmatch " show matching brackets set cindent set number " show line numbers set showmode " show mode at bottom of screen set hlsearch " highlight all search results set incsearch " increment search set ignorecase " case-insensitive search set smartcase " upper-case sensitive search set laststatus=2 set ruler " ruler display in status line "set mouse-=a " disable the mouse set nopaste "inoremap let python_highlight_all = 1 " common save shortcuts inoremap :wa nnoremap :w autocmd FileType make setlocal noexpandtab "colorscheme gardener "colorscheme desert256 "colorscheme candycode colorscheme jellybeans " Toggle dark/light default colour theme for shitty terms map :let &background = ( &background == "dark" ? "light" : "dark" ) " Compile and run keymappings au FileType php map :!php % au FileType python map :!python % au FileType perl map :!perl % au FileType ruby map :!ruby % au FileType lua map :!lua % au FileType html,xhtml map :!firefox % " MiniBufExplorer let g:miniBufExplMapWindowNavVim = 1 let g:miniBufExplMapWindowNavArrows = 1 let g:miniBufExplMapCTabSwitchBufs = 1 let g:miniBufExplModSelTarget = 1 "set tags+=$HOME/.vim/tags/python.ctags map ggg?G``" apply rot13 for people snooping over shoulder, good fun if !has("gui_running") if &term == "screen" set =Oc set =Od imap :bn imap :bp endif endif if has("gui_running") set guioptions-=m set guioptions-=T endif