For bash users who are used to ctrl+a and ctrl+e, it may be convenient to have the same shortcuts in vim:
" normal mode
nnoremap <c-a> ^
nnoremap <c-e> $
" visual mode
vnoremap <c-a> ^
vnoremap <c-e> $
" insert mode
inoremap <c-a><esc>^i
inoremap <c-e><esc>$a" commandline mode
cnoremap <c-a><c-b> " this is specially useful in tmux since <c-b>is the default tmux prefix/modkey, which requires users totype<c-b> twice tomove the cursorto the beginning of the lineinvim commandline mode" cnoremap <c-e> <c-e> " this is not needed since <c-e> is the default vim keybinding for moving cursor to end of line in commandline mode
Can you help create some code that will allow quotes to be stored in a folder for use in notes without the requirement of having them exist in the root directory? Thanks
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
For bash users who are used to
ctrl+a
andctrl+e
, it may be convenient to have the same shortcuts in vim:Can you help create some code that will allow quotes to be stored in a folder for use in notes without the requirement of having them exist in the root directory? Thanks