MIT License

项目介绍

robmiller/vim-movar 是一个托管在 GitHub 上的开源项目,主要使用 VimL 编写,采用 MIT License 许可证,目前获得 26 个 Star、0 次 Fork。

仓库全名
robmiller/vim-movar
开源许可证
MIT License
Star 数
26
未关闭 Issue
1

README 摘要

movar movar is a Vim plugin that adds a couple of movements that make working with variables easier. av: around variable movar adds the movement av — "around variable" — which makes it easy to yank, change, or delete variables in one fell swoop. It covers a lot of use cases that previously would require several different movements. For example, with the cursor anywhere in the variable in the following examples, cav…

完整内容见 GitHub 原始 README 或本页 。

常见问题

vim-movar 用什么语言开发?

主要使用 VimL 编写,采用 MIT License 许可证,目前有 26 个 Star。

vim-movar 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 vim-movar 的源码?

可以直接克隆仓库:git clone https://github.com/robmiller/vim-movar.git,默认分支为 master;安装与运行步骤见仓库 README。

vim-movar 最近还在维护吗?

仓库最近一次更新为 2013年4月21日,当前有 1 个未关闭 Issue;Star 数为 26,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Custom vim movements for selecting variables in PHP and Ruby

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
29
价值分
15
活跃状态
活跃
暂无主题

语言占比

JavaScript
PHP
Ruby
Vim Script

贡献者

README

movar

movar is a Vim plugin that adds a couple of movements that make working with variables easier.

av: around variable

movar adds the movement av — “around variable” — which makes it easy to yank, change, or delete variables in one fell swoop.

It covers a lot of use cases that previously would require several different movements. For example, with the cursor anywhere in the variable in the following examples, cav would always select the variable and only the variable:

if ( $_SERVER['REQUEST_URI'] === '/foo' ) {

(rather than ciW)

if ( isset($_SERVER['REMOTE_ADDR']) ) {

(rather than ci()

As well as some cases not easily covered by existing movements, like:

$foo->bar("baz")

…where no single movement would allow you to select $foo->bar from within the variable.

## iv: inner variable

For variables that have sigil characters — e.g. Ruby, which uses @ for instance variables and $ for global variables — movar adds another movement: iv, which matches the name of the variable but leaves the sigil intact. So, if you have:

@foo['bar']

…then calling civ from anywhere within the variable will change foo['bar'] and leave the @ in place.

## Language support

At the moment, movar supports PHP, Javascript, and Ruby, but it should be relatively straightforward to add new rules for different languages in the future.

评论

暂无评论