- Mastering Vim
- Ruslan Osipov
- 246字
- 2021-06-10 18:51:30
Plugin spotlight – Vinegar
Tim Pope's vinegar.vim is a simple plugin that addresses the difficulty of using project drawers with Vim split window functionality. Plugins such as NERDTree become rather disorienting to work with when you have more than one window open in a split.
In the following example, three windows are open (and a fourth NERDTree window on the left):
When pressing Enter with the cursor in the NERDTree window, which window will the new file be opened in?
Tim Pope solves this problem with a small plugin called Vinegar, which makes using Netrw a more seamless experience. It's available over at https://github.com/tpope/vim-vinegar (see Installing plugins for installation instructions).
Vinegar adds a handy new mapping: - (dash) to open Netrw in a current directory. Try it out:
The plugin hides Netrw's help bar, which might be confusing at first. Hit I (uppercase i) to bring it back. Another shortcut, Shift + ~ key, takes you to your home directory, which is often where you'll store your projects.
- FuelPHP Application Development Blueprints
- 深度實踐OpenStack:基于Python的OpenStack組件開發
- 精通Nginx(第2版)
- LabVIEW2018中文版 虛擬儀器程序設計自學手冊
- Django:Web Development with Python
- JavaScript從入門到精通(第3版)
- Android Native Development Kit Cookbook
- Scratch3.0趣味編程動手玩:比賽訓練營
- Cocos2d-x Game Development Blueprints
- Go語言開發實戰(慕課版)
- Instant jQuery Boilerplate for Plugins
- 網絡數據采集技術:Java網絡爬蟲實戰
- Go語言從入門到精通
- Joomla!Search Engine Optimization
- Bitcoin Essentials