summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2015-01-06 16:29:19 -0500
committerJune McEnroe <june@causal.agency>2015-01-06 16:29:19 -0500
commitafe511fcb926240e53c7e3e553ac639bfef629dd (patch)
tree3d0cfae76792651a58b446db6b8978af845e1c01
parentHighlight columns 80, 100, 120 (diff)
downloadsrc-afe511fcb926240e53c7e3e553ac639bfef629dd.tar.gz
src-afe511fcb926240e53c7e3e553ac639bfef629dd.zip
Swap 0 and ^ in Vim
-rw-r--r--.vimrc4
1 files changed, 4 insertions, 0 deletions
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 <leader>n :nohlsearch<CR>