From a6c4d6cae64c1b398dec1eb1d168eec4601d475a Mon Sep 17 00:00:00 2001 From: Yan Pritzker Date: Sat, 25 Jan 2014 12:56:54 -0600 Subject: [PATCH] Make 0 go to first character, making it easier to work with indented languages --- vim/settings/yadr-keymap.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vim/settings/yadr-keymap.vim b/vim/settings/yadr-keymap.vim index 6af7bdd..d6c3404 100644 --- a/vim/settings/yadr-keymap.vim +++ b/vim/settings/yadr-keymap.vim @@ -18,6 +18,13 @@ function! YRRunAfterMaps() nnoremap Y :YRYankCount 'y$' endfunction +" Make 0 go to the first character rather than the beginning +" of the line. When we're programming, we're almost always +" interested in working with text rather than empty space. If +" you want the traditional beginning of line, use ^ +nnoremap 0 ^ +nnoremap ^ 0 + " ======================================== " RSI Prevention - keyboard remaps " ========================================