summary refs log tree commit diff
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
parentHighlight columns 80, 100, 120 (diff)
downloadsrc-3520224285540ea02cabf59c4e221c9e355ddbde.tar.gz
src-3520224285540ea02cabf59c4e221c9e355ddbde.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>
 
reathsJune McEnroe One of those good songs from a soundtrack of a film that probably isn't? The summary sounds a lot more interesting than the title implies, at least. 2020-09-04Open /dev/tty in nudgeJune McEnroe This makes it work even when it's run connected to a pipe, i.e. as the notify command of catgirl... 2020-09-04Add nudgeJune McEnroe 2020-09-03Build fbclock with -lzJune McEnroe I guess this got lost somewhere, long ago... 2020-08-29Add tweets from retweetsJune McEnroe