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

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.

主站蜘蛛池模板: 仙游县| 墨脱县| 柳州市| 南安市| 武城县| 胶州市| 上高县| 咸丰县| 安远县| 沅陵县| 宜兰市| 宣武区| 芜湖县| 新田县| 和静县| 鲁山县| 三穗县| 麦盖提县| 齐齐哈尔市| 尼勒克县| 揭西县| 麻城市| 延吉市| 吉水县| 沅陵县| 城固县| 三穗县| 株洲市| 龙游县| 巨野县| 密云县| 公主岭市| 汤阴县| 广宁县| 三都| 玛沁县| 阿鲁科尔沁旗| 尉犁县| 遵义市| 荥经县| 武威市|