"---------------------------------------------------- " 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 mouse-=a " disable the mouse set nopaste set foldmethod=marker filetype plugin on set runtimepath+=/usr/share/vim "inoremap let python_highlight_all = 1 " common save shortcuts inoremap :wa nnoremap :w inoremap :qa nnoremap :q "au VimEnter * :NERDTreeToggle noremap :NERDTreeToggle inoremap :NERDTreeToggle noremap :FuzzyFinderFile inoremap :FuzzyFinderFile noremap :FuzzyFinderBuffer inoremap :FuzzyFinderBuffer autocmd FileType make setlocal noexpandtab au FileType python set ts=4 sw=4 softtabstop=4 et "colorscheme gardener "colorscheme desert256 "colorscheme candycode "colorscheme jellybeans colorscheme inkpot " 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 % au FileType tex map :!texi2pdf -c % " 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 guifont=Dejavu\ Sans\ Mono\ 7 "set guioptions-=m set guioptions-=T endif