Ⅰ. 插件描述
:running: Automagically follow symlinksⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'aymericbeaumet/symlink-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'aymericbeaumet/symlink-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'aymericbeaumet/symlink-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/aymericbeaumet/symlink.vim
Ⅳ. 文档说明
# vim-symlink
vim-symlink enables to
automatically follow the symlinks in Vim. This means that when you edit a
pathname that is a symlink, vim will instead open the file using the resolved
target path.
Features
- Cross-platform
- Recursive symlinks resolution
vimdiffsupport- Allow to create new files in symlinked directories
- Make vim-fugitive behave properly
with linked files
Install
I recommend using vim-plug:
Plug 'moll/vim-bbye' " optional dependency
Plug 'aymericbeaumet/vim-symlink'_vim-bbye allows to consistenly wipe
buffers without impacting the windows order. Even though a failover is
present in vim-symlink (hence avoiding a required dependency), the vim-bbye
implementation is more robust and I advise you to leverage it._
Usage
Read more about the usage in the documentation.
