search

Home  >  Q&A  >  body text

How to set identifier for specific path in vim?

Some paths are very long but are often used. How to set identifiers for these paths for easy use?

怪我咯怪我咯2773 days ago695

reply all(2)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-16 16:44:26

    Use alias:

    :ab path ~/your/path

    Enter the path like this, and after the space, it will automatically change to the set long directory. Multiple aliases can be set and added to the configuration file so that they do not need to be set every time.

    :h abbreviate

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-16 16:44:26

    Use the NERDTree plug-in and set Bookmark.

    reply
    0
  • Cancelreply