# HG changeset patch # User Ludovic Chabant # Date 1331342070 28800 # Node ID 990968329a9bb28b0256c4172887a89827222343 # Parent d930a9c6d5909815fb32f23611c3e6e4e5a22f52 Disabled minibufexpl for a while. New settings for all kinds of stuff. Using badwolf color scheme by default. diff -r d930a9c6d590 -r 990968329a9b vim/vimrc --- a/vim/vimrc Fri Mar 09 17:13:54 2012 -0800 +++ b/vim/vimrc Fri Mar 09 17:14:30 2012 -0800 @@ -31,6 +31,7 @@ " Disable some plugins. let g:pathogen_disabled = [] call add(g:pathogen_disabled, 'vimroom') +call add(g:pathogen_disabled, 'minibufexpl') " Load pathogen. call pathogen#infect() @@ -69,9 +70,22 @@ " Use confirmation dialog. set confirm +" Don't use annoying sounds. +set visualbell + " Remember lots of commands. set history=1000 +" Try to reduce flickering. +set lazyredraw + +" Show matching braces but not for too long. +set showmatch +set matchtime=2 + +" Show soft-broken/wrapped lines with a prefix. +set showbreak=→ + " Use incremental search, with highlighting, " case-insensitive unless we actually type some " mixed-case stuff. @@ -90,6 +104,10 @@ set showcmd set ruler +" Make sure splitting windows is done in a way that makes sense. +set splitbelow +set splitright + " Don't pollute the hard-drive with *~ files. Only " create them in hidden backup/temp directories while " we edit the file, and then get rid of it. @@ -106,9 +124,6 @@ " Always display the tab-page line. set showtabline=2 -" Show matching braces. -set showmatch - " Set the file-formats. set ffs=unix,mac,dos @@ -163,13 +178,24 @@ else set background=dark endif -colorscheme solarized +colorscheme badwolf " Enable file type detection. filetype indent plugin on " }}} +" Auto-Commands {{{ + +" Only show the highlighted cursor line in the current window. +augroup CursorLine + au! + au WinLeave * set nocursorline + au WinEnter * set cursorline +augroup END + +" }}} + " Plugin Settings {{{ " Navigate MiniBufExplorer with CTRL+Tab/CTRL+Shift+Tab. @@ -188,6 +214,12 @@ let mapleader="," +" Visual line navigation +noremap g +noremap g +noremap g +noremap g + " Edit & source the VIMRC. nnoremap ev :vsplit $MYVIMRC nnoremap sv :source $MYVIMRC