search

Home  >  Q&A  >  body text

How to change vim's default Ctrl-f scroll down shortcut key to Ctrl-d?

Because in ordinary editors Ctrl-f is usually the shortcut key for searching, but in vim it is the shortcut key for page downwards, which is very strange.

仅有的幸福仅有的幸福2773 days ago640

reply all(1)I'll reply

  • 習慣沉默

    習慣沉默2017-05-16 16:36:40

    Default setting, in vim Ctrl f (forward)是向下翻一页, Ctrl b (backward)是向上翻一页, Ctrl d (down) 是向下翻半页, Ctrl u (up) means to turn up half a page.

    It is not recommended to use Ctrl. For common operations such as turning pages, I am used to using <Leader> related key positions, such as setting <Leader> to the space bar, <Leader> dturning half a page, which may not be so awkward.

    If you are interested in this kind of key setting, you can see more information here.

    reply
    0
  • Cancelreply