To create Ctrl+f shortcut in Vim, follow the below steps: 1. Press the "esc" key to switch to command mode 2. Type ":map <c-f> /" (without quotes) 3. Press "enter" to execute the command
To create Ctrl+Shift+f shortcut in Vim, follow the below steps: 1. Press the "esc" key to switch to command mode 2. Type ":map <c-s-f> ?" (without quotes) 3. Press "enter" to execute the command
After executing these commands, you can use Ctrl+f to search for text from the cursor position forward, and Ctrl+Shift+f to search for text from the cursor position backward.
Asked: 2021-10-30 11:00:00 +0000
Seen: 11 times
Last updated: Aug 10 '22