Ask Your Question
2

What is the process for making Ctrl+f and Ctrl+Shift+f shortcuts in Vim?

asked 2021-10-30 11:00:00 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-08-10 15:00:00 +0000

plato gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-10-30 11:00:00 +0000

Seen: 11 times

Last updated: Aug 10 '22