官术网_书友最值得收藏!

  • Mastering Vim
  • Ruslan Osipov
  • 217字
  • 2021-06-10 18:51:27

Plugin spotlight – unimpaired

Tim Pope's vim-unimpaired is a plugin that adds a number of handy mappings for existing Vim commands (and a few new ones). I use it daily, as I find mappings more intuitive—]b and [b cycle through open buffers, ]f and [f cycle through files in a directory, and so on. It's available from GitHub at https://github.com/tpope/vim-unimpaired (see the Installing plugins section earlier in this chapter for installation instructions).

Here are some of the mappings vim-unimpaired provides:

  • ]b and [b cycle through buffers

  • ]f and [f cycle through files in the same directory as the current buffer

  • ]l and [l cycle through the location list (see the Location List section in Chapter 5Build, Test, and Execute)

  • ]q and [q cycle through the quickfix list (see the Quickfix list section in Chapter 5Build, Test, and Execute)

  • ]t and [t cycle through tags (see the Meet Exuberant Ctags section in Chapter 4, Understanding the Text)

The plugin also allows you to toggle certain options with just a few key presses, such as yos to toggle spell checking or yoc to toggle the cursor line highlighting.

See :help unimpaired for a full list of mappings and features that vim-unimpaired provides.

主站蜘蛛池模板: 新邵县| 武城县| 容城县| 淳化县| 曲麻莱县| 泸水县| 上虞市| 邵阳市| 澄江县| 高州市| 平陆县| 宜黄县| 石屏县| 宜宾县| 东港市| 邵东县| 诸城市| 固镇县| 宁武县| 柳河县| 铁岭县| 略阳县| 常德市| 资阳市| 台东市| 博白县| 云和县| 渭南市| 汕尾市| 龙井市| 平原县| 三原县| 株洲县| 德保县| 西贡区| 宜兰县| 邛崃市| 稻城县| 翁牛特旗| 万源市| 富源县|