vim change ^ and $ go to end of current line

update mapping of ^ and $ to go to the beginning of the current line,
even when line wrapping is enabled
This commit is contained in:
Nick Nisi
2015-02-28 20:27:56 -06:00
parent e653220e81
commit 1b2d269118

View File

@@ -239,6 +239,8 @@ nnoremap <C-y> 3<C-y>
" moving up and down work as you would expect
nnoremap <silent> j gj
nnoremap <silent> k gk
nnoremap <silent> ^ g^
nnoremap <silent> $ g$
" search for word under the cursor
nnoremap <leader>/ "fyiw :/<c-r>f<cr>
@@ -253,6 +255,8 @@ let g:silent_custom_command = 0
nmap \t :set ts=4 sts=4 sw=4 noet<cr>
nmap \s :set ts=4 sts=4 sw=4 et<cr>
nmap <leader>w :setf textile<cr> :Goyo<cr>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Functions
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""