let g:ctrlp_map = '' let g:ctrlp_cmd = 'CtrlP' source ~/.vim/bundles.vim filetype plugin indent on syn on let mapleader = "," set guifont=7x14 set history=1000 set undolevels=1000 "maximum number of changes that can be undone set undoreload=10000 "maximum number lines to save for undo on a buffer reload set undodir=~/.vim/undo set undofile set shiftwidth=8 set tabstop=8 set softtabstop=0 set autoindent set ruler set number set relativenumber au InsertEnter * :set nornu au InsertLeave * :set rnu au FocusLost * :set nornu au FocusGained * :set rnu au BufLeave * :set rnu au BufEnter * :set nornu au WinLeave * :set rnu au WinEnter * :set nornu " On English keyboards, we want to enter German 'Umlaute' via , " not via ae (for 'ä'). So we turn digraphs off. set nodigraph " show matching parentheses set showmatch "backspace can move beyond the start of insertion set backspace=2 set noautowrite set title set clipboard=unnamed,unnamedplus,autoselect set foldmethod=marker set grepprg=ag set grepformat=%f:%l:%m set ignorecase set smartcase set scrolloff=3 set hidden " Scroll past linebreaks, damnit set whichwrap=b,s,h,l,<,>,[,] set comments=sr:/*,mb:*,el:*/,sr:,://,b:#,:%,n:> set mouse=a " ignore filetypes for matches set suffixes=".o,~,.swp set cryptmethod=blowfish " tab/shift-tab to increase/decrease indent " alas shift-tab no worky in PN " +V for literal \t "inoremap "inoremap " Emacs-like tab key (indent to current level) "nmap == "colors koehler "colors blue "colors evening "colors fevening "colors hhdyellow colors twilight256 "mutt au BufRead /tmp/mutt* normal :g/^> -- $/,/^$/-1d^M/^$^M^L au BufRead /tmp/mutt* normal :set textwidth=72 wrapmargin=72 au BufRead /tmp/mutt* normal :set wrap noai nosi au BufRead /tmp/mutt* normal :map {gq} " Ctrl+J rejustifies current paragraph au BufRead /tmp/mutt* normal :set formatoptions=tcroqv " see :help formatoptions au BufRead /tmp/mutt* normal :set comments=nb:> " rejustify quoted text correctly autocmd BufRead lpass.* setlocal noundofile nowritebackup noswapfile nnoremap \tp :set invpaste paste? nmap \tp imap \tp set pastetoggle= nnoremap \tl :set invlist list? nmap \tl imap \tl map :setlocal spell spelllang=en_gb map :setlocal nospell "nmap {!}par 72 nmap gqip nmap :,/^-- $/-2d nmap gqip "set mail_cursor_start "php "autocmd BufNewFile *.php 0r ~/public_html/.bare.php autocmd BufNewFile *.php set makeprg=php\ -l\ % autocmd BufNewFile *.php set errorformat=%m\ in\ %f\ on\ line\ %l" "html autocmd BufNewFile *.html 0r ~/.config/template/html.html autocmd BufNewFile *.rb 0r ~/.config/template/ruby.rb au FileType python set sw=2 sts=2 et au FileType ruby set sw=2 sts=2 ts=2 au FileType html set sw=2 sts=2 ts=2 au FileType haml set sw=2 sts=2 ts=2 noet "show whitespace set listchars=tab:»·,trail:· highlight NonText ctermfg=blue "highlight whitespace highlight LeadingTab ctermbg=blue guibg=blue highlight LeadingSpace ctermbg=darkgreen guibg=darkgreen highlight EvilSpace ctermbg=darkred guibg=darkred au Syntax * syn match LeadingTab /^\t\+/ au Syntax * syn match LeadingSpace /^\ \+/ au Syntax * syn match EvilSpace /\(^\t*\)\@ set secure