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:
@@ -239,6 +239,8 @@ nnoremap <C-y> 3<C-y>
|
|||||||
" moving up and down work as you would expect
|
" moving up and down work as you would expect
|
||||||
nnoremap <silent> j gj
|
nnoremap <silent> j gj
|
||||||
nnoremap <silent> k gk
|
nnoremap <silent> k gk
|
||||||
|
nnoremap <silent> ^ g^
|
||||||
|
nnoremap <silent> $ g$
|
||||||
|
|
||||||
" search for word under the cursor
|
" search for word under the cursor
|
||||||
nnoremap <leader>/ "fyiw :/<c-r>f<cr>
|
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 \t :set ts=4 sts=4 sw=4 noet<cr>
|
||||||
nmap \s :set ts=4 sts=4 sw=4 et<cr>
|
nmap \s :set ts=4 sts=4 sw=4 et<cr>
|
||||||
|
|
||||||
|
nmap <leader>w :setf textile<cr> :Goyo<cr>
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => Functions
|
" => Functions
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|||||||
Reference in New Issue
Block a user