converting camel case <-> snake case
https://stackoverflow.com/a/5186175
crcto Camel case (eg.userName)crsto Snake case (eg.user_name)crmto Mixed case (eg.UserName)
Record and replay
https://www.thegeekstuff.com/2009/01/vi-and-vim-macro-tutorial-how-to-record-and-play/
- Start recording with
q. - Then type any key to register the recording. If you type
a, it stores into@a. - Do whatever you want to record.
- Stop recording with
q. - Replay with the registered name which you typed. (eg.
@a) - If you want to repeat many times, you can repeat like
10@a.
Open file under cursor in a new window
https://vim.fandom.com/wiki/Open_file_under_cursor
<c-w>fto open in a new window (Ctrl-w f)gfto open in the same window (“goto file”)
Jump and back
c-oto jump back to older jumps.c-ito come back.:juto print the jump list.