summary refs log tree commit diff
path: root/.vimrc
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2015-01-06 16:29:19 -0500
committerJune McEnroe <programble@gmail.com>2015-01-06 16:29:19 -0500
commit3520224285540ea02cabf59c4e221c9e355ddbde (patch)
tree79d8afc34d9add2f691847ff484577d86a8c4cda /.vimrc
parentHighlight columns 80, 100, 120 (diff)
downloadsrc-3520224285540ea02cabf59c4e221c9e355ddbde.tar.gz
src-3520224285540ea02cabf59c4e221c9e355ddbde.zip
Swap 0 and ^ in Vim
Diffstat (limited to '.vimrc')
-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>