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>
 
'2017-05-01 19:23:13 -0400'>2017-05-01Reorder lines in psqlrcJune McEnroe 2017-05-01Clean up Karabiner configurationJune McEnroe 2017-05-01Fix prune script loopJune McEnroe For loop was getting one string with several paths separated by newlines. 2017-05-01Fix prune scriptJune McEnroe The for loop was overriding zsh's $path variable, causing it to not be able to find rm. 2017-05-01Clean up SSH configJune McEnroe 2017-05-01Rename colorscheme "trivial"June McEnroe 2017-05-01Update vendored pathogenJune McEnroe 2017-05-01Clean up git configJune McEnroe 2017-05-01Clean up style in xxJune McEnroe 2017-05-01Clean up style in pbdJune McEnroe 2017-05-01Use EX_OK in pbcopyJune McEnroe 2017-04-30Clean up clockJune McEnroe 2017-04-30Clean up error strings in briJune McEnroe 2017-03-18Add -u option to xxJune McEnroe 2017-03-15Fix non-string-literal-format-string in briJune McEnroe 2017-03-15Fix bri compilationJune McEnroe cc will remove the file itself just fine. Always exit in case any of the shell commands fail. 2017-03-15Use psvar for title settingJune McEnroe Prevents prompt expansion from happening on the command being run when it is set in the title. 2017-03-14Add bri brightness control scriptJune McEnroe This is probably terrible. 2017-03-14Add comment to tmux terminal overrideJune McEnroe 2017-03-13Have tmux set block cursor on linux consoleJune McEnroe 2017-03-13Use inverse for Visual in colorschemeJune McEnroe