How can I increase the key repeat rate beyond the OS's limit?

前端 未结 15 1991
攒了一身酷
攒了一身酷 2021-01-29 21:16

I have a bad habit of using the cursor keys of my keyboard to navigate source code. It\'s something I\'ve done for 15 years and this of course means that my navigating speed is

15条回答
  •  死守一世寂寞
    2021-01-29 21:46

    Don't navigate character-by-character.

    In Vim (see ViEmu for Visual Studio):

    • bw -- prev/next word
    • () -- prev/next sentence (full stop-delimited text)
    • {} -- prev/next paragraph (blank-line delimited sections of text)
    • /? -- move the cursor to the prev/next occurence the text found (w/ set incsearch)

    Moreover, each of the movements takes a number as prefix that lets you specify how many times to repeat the command, e.g.:

    • 20j -- jump 20 lines down
    • 3} -- three paragraphs down
    • 4w -- move 4 words forward
    • 40G -- move to (absolute) line number 40

    There are most likely equivalent ways to navigate through text in your editor. If not, you should consider switching to a better one.

提交回复
热议问题