summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-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>