renamer.vim


Ⅰ. 插件描述

Git repo for http://www.vim.org/scripts/script.php?script_id=1721

Ⅱ. 基本信息

创建日期:  2006-11-29
使用用户:  145
Github星:  48
插件作者:  John Orr

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'qpkorr/renamer-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'qpkorr/renamer-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'qpkorr/renamer-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# renamer.vim
Git repo for http://www.vim.org/scripts/script.php?script_id=1721

https://github.com/qpkorr/vim-renamer is the official github repo for the renamer.vim script on vim.org, and supercedes the above location.

The repo contains the files suitable for a vim pathogen "bundle" directory (google is your friend).

From renamer.txt, the help file:

INTRODUCTION

Show a list of file names in a directory, rename then in the vim buffer
using vim editing commands, then have vim rename them on disk

DESCRIPTION

Renaming a single file is easily done via an operating system file explorer,
the vim file explorer (netrw.vim), or the command line. When you want to
rename a bunch of files, especially when you want to do a common text
manipulation to those file names, this plugin may help. It shows you all
the files in the current directory (and optionally in those below it),
and lets you edit their names in the vim buffer. When you're ready,
issue the command ":Ren" to perform the mass rename. Relative paths
can be given, and new directories will be created, with 755 permissions,
as required.

USAGE

Use the Renamer command invoke the functionality and set the User
Configurable Variables defined in plugin/renamer.vim as desired.

INSTALL DETAILS

The usual pathogen setup - add renamer directory to $HOME/.vim/bundle
directory.

[ Snip ]

More details in the full renamer.txt file.

添加新评论