Skip to content

Commit df36286

Browse files
committed
vim: jump to start of the line on insert mode
1 parent a9b8f32 commit df36286

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nvim/init.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
" nvim file: ~/.config/nvim/init.vim
2-
" Last Change: 2018 mar 22 16:49
2+
" Last Change: 2018 mar 22 18:47
33
" vim: ff=unix ai et ts=4
44
" Author: Sérgio Luiz Araújo Silva
55
" Reference: http://sergioaraujo.pbworks.com/w/page/15864094/vimrc
@@ -1171,6 +1171,8 @@ command! SaveAsRoot w !sudo tee %
11711171
cnoreabbrev sudow SaveAsRoot
11721172
cnoremap <c-a> <home>
11731173
cnoremap <c-e> <end>
1174+
inoremap <C-a> <C-o>^
1175+
inoremap <C-e> <End>
11741176
11751177
" to reselect use gv in normal mode - Shift-F11
11761178
nnoremap <F23> <ESC>:set hls! hls?<cr>

0 commit comments

Comments
 (0)