Make 0 go to first character, making it easier to work with indented languages

This commit is contained in:
Yan Pritzker 2014-01-25 12:56:54 -06:00
parent b63127ac15
commit a6c4d6cae6

View File

@ -18,6 +18,13 @@ function! YRRunAfterMaps()
nnoremap Y :<C-U>YRYankCount 'y$'<CR>
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
" ========================================