" $Abso: abso-files/files/vimrc,v 78952cdc6b46 2012/12/30 22:46:19 mat $ source $VIMRUNTIME/vimrc_example.vim set nobackup set noincsearch set bg=dark set cindent set foldenable set foldmethod=marker " allow backspacing over everything in insert mode set backspace=indent,eol,start set history=50 " keep 50 lines of command line history set ruler " show the cursor position all the time set showcmd " display incomplete commands set viminfo=%50,'1000,/500,:500,@500,f1,s100 " Add a bit more than the default. set modeline " make sure modeline is enabled set autoread " auto reread modified files map + :noh if &t_Co > 2 || has("gui_running") syntax on set hlsearch endif if &term == "screen" set ttymouse=xterm2 endif set mouse= if filereadable( expand( "$HOME/.vimrc") ) source $HOME/.vimrc endif let mapleader = " " map :let &background = ( &background == "dark"? "light" : "dark" ) map b :let &background = ( &background == "dark"? "light" : "dark" ) noremap n :set nu! noremap w :set wrap! noremap D /^\([<=>]\)\1\{6} noremap A gg/^<\{6}V/^=\{6}d/^>\{6}dd/\v^([<=>])\1{6} " Shortcut to rapidly toggle `set list` nmap l :set list! " Use the same symbols as TextMate for tabstops and EOLs if &encoding ==? "utf-8" set listchars=tab:▸–,eol:¶,trail:❖,nbsp:¬,extends:»,precedes:« else set listchars=tab:>-,eol:$,trail:#,nbsp:#,extends:>,precedes:< endif silent! colorscheme solarized