Mercurial > dotfiles
changeset 76:990968329a9b
Disabled minibufexpl for a while.
New settings for all kinds of stuff.
Using badwolf color scheme by default.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 09 Mar 2012 17:14:30 -0800 |
parents | d930a9c6d590 |
children | 964afea39a30 |
files | vim/vimrc |
diffstat | 1 files changed, 36 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 <up> g<up> +noremap <down> g<down> +noremap <home> g<home> +noremap <end> g<end> + " Edit & source the VIMRC. nnoremap <leader>ev :vsplit $MYVIMRC<cr> nnoremap <leader>sv :source $MYVIMRC<cr>