Ⅰ. 插件描述
Handles vim swap files in a inteligent wayⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'zirrostig/vim-smart-swap'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'zirrostig/vim-smart-swap'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'zirrostig/vim-smart-swap'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/zirrostig/vim-smart-swap
Ⅳ. 文档说明
SmartSwap
Handles vim swap files in an intelligent way
This plugin will delete a detected swapfile if the swapfile is older than the
file being opened or if the swapfile is identical to the file being opened.
Configuration:
Two global variables control the behavior of this plugin.
g:SmartSwap_CheckDate -> When set to 0, will disable checking of the date stamps
g:SmartSwap_CheckDiff -> When set to 0, will disable doing a diff of the swap
and file being opened
Disclaimer:
Not responsible for loss of data. Use at own risk :)