# HG changeset patch # User Brian Neal # Date 1388362958 21600 # Node ID b8049010198a76579df1c09ec6e05329c2749c74 # Parent 9b01ad28a5c3c40dc76d1ef7ad88e13045b5fc39 Changes to .vimrc after reading Practical Vim. diff -r 9b01ad28a5c3 -r b8049010198a vim/.vimrc --- a/vim/.vimrc Sun Dec 29 18:21:04 2013 -0600 +++ b/vim/.vimrc Sun Dec 29 18:22:38 2013 -0600 @@ -49,25 +49,21 @@ set background=dark colorscheme peaksea2 -" colorscheme Dark " shortcut for word completion in insert mode imap " buffer next and previous commands -nnoremap :bnext -nnoremap :bprevious +" TODO: find a better mapping +" TODO: nnoremap :bnext +" TODO: nnoremap :bprevious " Remove extra trailing spaces nnoremap :%s/\s\+$// " setlocal spell spelllang=en_us -let mapleader="," - -" NERD tree plugin -" nmap ,n :NERDTreeToggle -" let g:NERDTreeQuitOnOpen=1 +let mapleader="\\" " ctags support @@ -92,23 +88,23 @@ set gdefault set showmatch set formatoptions=tcqrn1 -nnoremap ,/ :noh -" nnoremap / /\v -" vnoremap / /\v +nnoremap / :noh +nnoremap / /\v +vnoremap / /\v " Splitting windows and moving around between them: -nnoremap ,v vl +nnoremap v vl nnoremap h nnoremap j nnoremap k nnoremap l " Absolute vs relative line numbers: -nnoremap ,na :set norelativenumber:set number -nnoremap ,nr :set relativenumber +nnoremap na :set norelativenumber:set number +nnoremap nr :set relativenumber " Format paragraph -nnoremap ,p gqip +nnoremap p gqip function BgnSwitchPart() python << EOF @@ -136,7 +132,7 @@ EOF endfunction -nnoremap ,s :call BgnSwitchPart() +nnoremap s :call BgnSwitchPart() " Pathogen support call pathogen#infect()