From 6ac3e13e99b3d0de839f7ecca98af8263fc2fe70 Mon Sep 17 00:00:00 2001 From: yan Date: Tue, 29 Nov 2011 16:56:49 -0800 Subject: [PATCH] Remap W to write the file, Cc to copy current command to the vim command line --- vimrc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/vimrc b/vimrc index 04d9f28..b5ef659 100644 --- a/vimrc +++ b/vimrc @@ -309,9 +309,19 @@ hi Directory guifg=#5285b4 hi NonText guifg=#101010 "hide the blank line ~ marks hi rubyClass guifg=lightgreen gui=bold +" this affects LustyJuggler's 'currently selected' color +" designed for use with solarized colorscheme +hi Question guifg=yellow + " show this many lines around what i'm editing set so=8 +" aliases (C)opy (c)ommand - which allows us to execute +" the line we're looking at (it does so by yy-copy, colon +" to get to the command mode, C-f to get to history editing +" p to paste it, C-c to return to command mode, and CR to execute +nmap Cc yy:p + " Find references to the currently opened partial (file) " by pressing P in command mode function GitGrepCurrentPartial() @@ -365,3 +375,6 @@ nnoremap cf :let @* = expand("%:p") " For fugitive.git, dp means :diffput. Define dg to mean :diffget nnoremap dg :diffget + +" alias W to write the file instead of :w +nnoremap W :w