vim-vinegar

vinegar.vim: Combine with netrw to create a delicious salad dressing

  • 所有者: tpope/vim-vinegar
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

vinegar.vim

Split windows and the project drawer go together like oil and vinegar. I
don't mean to say that you can combine them to create a delicious salad
dressing. I mean that they don't mix well!

  • Drew Neil

You know what netrw is, right? The built in directory browser? Well,
vinegar.vim enhances netrw, partially in an attempt to mitigate the need for
more disruptive "project drawer" style plugins.

Some of the behaviors added by vinegar.vim would make excellent upstream
additions. Many, the author would probably reject. Others are a bit too wild
to even consider.

  • Press - in any buffer to hop up to the directory listing and seek to the
    file you just came from. Keep bouncing to go up, up, up. Having rapid
    directory access available changes everything.
  • All that annoying crap at the top is turned off, leaving you with nothing
    but a list of files. This is surprisingly disorienting, but ultimately
    very liberating. Press I to toggle until you adapt.
  • The oddly C-biased default sort order is replaced with a sensible application
    of 'suffixes'.
  • File hiding: files are not listed that match with one of the patterns in
    'wildignore'.
    If you put let g:netrw_list_hide = '\(^\, \s\s\)\zs\.\S\+'
    in your vimrc, vinegar will initialize with dot files hidden.
    Press gh to toggle dot file hiding.
  • Press . on a file to pre-populate it at the end of a : command line.
    This is great, for example, to quickly initiate a :grep of the file or
    directory under the cursor. There's also !, which starts the line off
    with a bang. Type !chmod +x and get :!chmod +x path/to/file.
  • Press y. to yank an absolute path for the file under the cursor.
  • Press ~ to go home.
  • Use Vim's built-in CTRL-^ (CTRL-6) for switching back to the previous
    buffer from the netrw buffer.

Installation

Install using your favourite package manager, or use Vim's built-in package support:

mkdir -p ~/.vim/pack/tpope/start
cd ~/.vim/pack/tpope/start
git clone https://github.com/tpope/vim-vinegar.git

Promotion

Like vinegar.vim? Star the repository on
GitHub and vote for it on
vim.org.

Love vinegar.vim? Follow tpope on
GitHub and
Twitter.

License

Copyright © Tim Pope. Distributed under the same terms as Vim itself.
See :help license.

主要指标

概览
名称与所有者tpope/vim-vinegar
主编程语言Vim Script
编程语言Vim script (语言数: 1)
平台
许可证
所有者活动
创建于2013-12-24 16:44:31
推送于2024-06-28 23:22:40
最后一次提交2022-01-10 13:56:58
发布数1
最新版本名称v1.0 (发布于 2018-03-16 16:12:49)
第一版名称v1.0 (发布于 2018-03-16 16:12:49)
用户参与
星数2.3k
关注者数23
派生数89
提交数58
已启用问题?
问题数98
打开的问题数24
拉请求数18
打开的拉请求数8
关闭的拉请求数16
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?