From 49cc7f01ecd4fee76d23027b400cd2378fb63b03 Mon Sep 17 00:00:00 2001 From: dorkitude Date: Tue, 26 Jul 2011 18:38:51 -0700 Subject: [PATCH] CTRL + h/j/k/l for window motion --- .vimrc | 12 ++++++++---- README.markdown | 10 +++++----- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.vimrc b/.vimrc index 160a0c0..8aee88e 100644 --- a/.vimrc +++ b/.vimrc @@ -60,10 +60,10 @@ set selectmode="" " this gives me convenient key mappings for window movement -noremap ,h :wincmd h -noremap ,j :wincmd j -noremap ,k :wincmd k -noremap ,l :wincmd l +nnoremap h +nnoremap j +nnoremap k +nnoremap l " a quick way to bring up Ack noremap ,a :Ack --follow @@ -89,3 +89,7 @@ if has("gui_running") set guioptions=egmrt endif +"give me that nice little gutter so i don't make stuff too wide +"set formatoptions=qrn1 +"set colorcolumn=80 + diff --git a/README.markdown b/README.markdown index 193847c..1baa0f0 100644 --- a/README.markdown +++ b/README.markdown @@ -72,12 +72,12 @@ While I've used git via the command line for years, I now rarely leave Vim to pe **Window Movement** -I stole Derek Wyatt's window-motion bindings, which lets you do this to move control windows: +My window motion bindings allow you to do this to move control windows: - - `,h` move control to the window to the left - - `,j` = move control to the window below - - `,k` = move control to the window above - - `,l` = move control to the window to the right + - `CTRL+h` move control to the window to the left + - `CTRL+j` = move control to the window below + - `CTRL+k` = move control to the window above + - `CTRL+l` = move control to the window to the right (Normally, these would be `^w h` `^w j` etc)