rename.vim


Ⅰ. 插件描述

Rename the current file in the vim buffer + retain relative path.

Ⅱ. 基本信息

创建日期:  2011-08-12
使用用户:  812
Github星:  94
插件作者:  Dan Rogers

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'danro/rename-vim-the-lucky-one'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'danro/rename-vim-the-lucky-one'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'danro/rename-vim-the-lucky-one'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/danro/rename.vim

Ⅳ. 文档说明

Git branch of http://www.vim.org/scripts/script.php?script_id=1928

rename.vim - Rename a buffer within Vim and on the disk

Copyright June 2007 by Christian J. Robinson (infynity@onewest.net)
Updated August 2011 by Dan Rogers (dan@danro.net)

Distributed under the terms of the Vim license. See ":help license".

Changes

  • Now retains path relative to global current directory.
  • Added lowercase "rename" alias.

Usage:

:rename[!] {newname}

添加新评论