diff options
author | June McEnroe <programble@gmail.com> | 2015-01-06 16:29:19 -0500 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2015-01-06 16:29:19 -0500 |
commit | 3520224285540ea02cabf59c4e221c9e355ddbde (patch) | |
tree | 79d8afc34d9add2f691847ff484577d86a8c4cda | |
parent | Highlight columns 80, 100, 120 (diff) | |
download | src-3520224285540ea02cabf59c4e221c9e355ddbde.tar.gz src-3520224285540ea02cabf59c4e221c9e355ddbde.zip |
Swap 0 and ^ in Vim
-rw-r--r-- | .vimrc | 4 |
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> |