From e05f4fd92940b839c6aaf0ca279a1353825783a7 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 5 Jun 2014 14:47:54 -0400 Subject: vimrc: add 0 and $ mappings for soft wrapped lines Make 0 go to the beginning of the visual line and $ go to the end. Have g0 and g$ go to the beginning and end of the _actual_ line. --- vimrc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index f5f4990..9a3b626 100644 --- a/vimrc +++ b/vimrc @@ -194,6 +194,10 @@ " appear to be doing so before and I want to make sure that an undo " entry is created every time I save. " +" 2014.06.05: +" * Map 0 -> g0 and $ -> g$ plus the reverse. Makes it easier to get to +" the beginning & end of a soft wrapped line. +" " Pathogen @@ -462,6 +466,12 @@ nnoremap k gk nnoremap gj j nnoremap gk k +" Easier moving to the beginning & end of wrapped lines +nnoremap 0 g0 +nnoremap $ g$ +nnoremap g0 0 +nnoremap g$ $ + " Easier buffer switching nnoremap bl :ls nnoremap j :bnext -- cgit v1.2.3