From afe511fcb926240e53c7e3e553ac639bfef629dd Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Tue, 6 Jan 2015 16:29:19 -0500 Subject: Swap 0 and ^ in Vim --- .vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.vimrc b/.vimrc index beb18742..ad05fa27 100644 --- a/.vimrc +++ b/.vimrc @@ -161,6 +161,10 @@ let mapleader = "," nnoremap ' ` nnoremap ` ' +" Swap 0 and ^ (0 now moves to the first non-whitespace character). +nnoremap 0 ^ +nnoremap ^ 0 + " Clear search result highlighting. nmap n :nohlsearch -- cgit 1.4.1