vim easy-align插件使用
https://github.com/junegunn/vim-easy-align
用vundle安装, 添加下面到vimrc
Plugin 'junegunn/vim-easy-align' " Start interactive EasyAlign in visual mode (e.g. vipga)
xmap ga <Plug>(EasyAlign) " Start interactive EasyAlign for a motion/text object (e.g. gaip)
nmap ga <Plug>(EasyAlign)
我感觉就是使用有点难学
先用v选择多行
ga进入easyalign模式
默认向左对其,比如按照空格对其 *<space>
向右对其 <enter>*<space>
居中对其 <enter><enter>*<space>
如果遇到其他字符比如 | , = 啥的,都把空格替换为对应的即可
*可以换成数字,对应后面的第几个字符,*就是全部都指定
比如这个
| Option| Type | Default | Description |
|--|--|--|--|
| threads | Fixnum | 1 | number of threads in the thread pool |
|queues |Fixnum | 1 | number of concurrent queues |
|queue_size | Fixnum | 1000 | size of each queue |
| interval | Numeric | 0 | dispatcher interval for batch processing |
|batch | Boolean | false | enables batch processing mode |
|batch_size | Fixnum | nil | number of maximum items to be assigned at once |
|logger | Logger | nil | logger instance for debug logs |
试试vipga*|
vip是选择多行,ga是进入easyalign模式,*|是指对|对齐
就变成了这样
vipga*|
| option | type | default | description |
| -- | -- | -- | -- |
| threads | fixnum | 1 | number of threads in the thread pool |
| queues | fixnum | 1 | number of concurrent queues |
| queue_size | fixnum | 1000 | size of each queue |
| interval | numeric | 0 | dispatcher interval for batch processing |
| batch | boolean | false | enables batch processing mode |
| batch_size | fixnum | nil | number of maximum items to be assigned at once |
| logger | logger | nil | logger instance for debug logs | vipga<enter>*|
| option | type | default | description |
| -- | -- | -- | -- |
| threads | fixnum | 1 | number of threads in the thread pool |
| queues | fixnum | 1 | number of concurrent queues |
| queue_size | fixnum | 1000 | size of each queue |
| interval | numeric | 0 | dispatcher interval for batch processing |
| batch | boolean | false | enables batch processing mode |
| batch_size | fixnum | nil | number of maximum items to be assigned at once |
| logger | logger | nil | logger instance for debug logs | vipga<enter><enter>*|
| option | type | default | description |
| -- | -- | -- | -- |
| threads | fixnum | 1 | number of threads in the thread pool |
| queues | fixnum | 1 | number of concurrent queues |
| queue_size | fixnum | 1000 | size of each queue |
| interval | numeric | 0 | dispatcher interval for batch processing |
| batch | boolean | false | enables batch processing mode |
| batch_size | fixnum | nil | number of maximum items to be assigned at once |
| logger | logger | nil | logger instance for debug logs |
vim easy-align插件使用的更多相关文章
- Struts2 easy UI插件
一.easy UI是类似于jQuery UI的插件库,它提供了丰富的各种常用插件:tree.datagrid... tree插件: 语法:$(selector).tree([settings]); 常 ...
- vim代码格式化插件clang-format
title: vim代码格式化插件clang-format date: 2017-12-12 20:28:26 tags: vim categories: 开发工具 安装vim-clang-forma ...
- vim配置及插件安装管理(超级详细)
1 写在前面 Linux下编程一直被诟病的一点是: 没有一个好用的IDE, 但是听说Linux牛人, 黑客之类的也都不用IDE. 但是对我等从Windows平台转移过来的Coder来说, 一个好用 ...
- vim配置及插件安装管理(超级详细)[转]
1 写在前面 Linux下编程一直被诟病的一点是: 没有一个好用的IDE, 但是听说Linux牛人, 黑客之类的也都不用IDE. 但是对我等从Windows平台转移过来的Coder来说, 一个好用 ...
- vim之pydiction插件
[vim之pydiction插件] It consists of three main files: python_pydiction.vim -- Vim plugin. complete-dict ...
- WordPress Event Easy Calendar插件多个跨站请求伪造漏洞
漏洞名称: WordPress Event Easy Calendar插件多个跨站请求伪造漏洞 CNNVD编号: CNNVD-201309-083 发布时间: 2013-09-11 更新时间: 201 ...
- Vim扩展YouCompleteMe插件
在Vim中安装YouCompleteMe插件 一.安装前的说明: 1.确保vim版本>=7.4,若MAC OS,建议直接安装MacVim(8.0版本). ps:如果不想使用MacVim的GUI, ...
- vim配置文件和插件管理
本文通过总结零碎的资料总结而成,更多是去引导学习vim配置文件及插件使用. .vimrc配置文件,内容如下(备注清晰) "引入插件pathogen使用 execute pathogen#in ...
- vim实战:插件安装(Vundle,NerdTree)
一:插件管理器Vundle 1.简介 Vundle是vim的一个插件管理器, 同时它本身也是vim的一个插件.插件管理器用于方便.快速的安装.删除.Vim更新插件.vim Vundle插件官方地址:h ...
- vim语法高亮插件编写
# vim语法高亮插件编写 编写vim语法高亮插件很简单,只需要编写两个文件.vim放到vim的安装目录下的目录就可以了. ## 输出------------------------------ sy ...
随机推荐
- 快刀斩乱麻之 Katana
Katana-武士刀,寓意:快.准.狠! 按照常规,我们一般编写的 ASP.NET 应用程序会部署在 IIS 上(有点傻的描述),在 ASP.NET 应用程序中,我们会大量使用 HttpContext ...
- ASP.NET MVC Application_Error 无效不执行
我们一般在开发 ASP.NET MVC 应用程序的时候,会在 Application_Error 中添加异常日志记录,一般会记录 500 的错误信息,但如果应用程序在出错的时候,Application ...
- C/C++,彩色图像小游戏。
这里声明,这个游戏是由本人,在大一暑假自作的第二个小游戏,转载请注明原帖地址,谢谢! 所有图片都是我一个人用ps搞出来的,比较简单.........毕竟不是学图像制作的,请体谅!另外,图片 不放出来了 ...
- DEBIAN下中文显示
转:http://www.cppblog.com/colorful/archive/2012/05/28/176516.aspx 一.首先检查LOCALE情况 说明:DEBIAN因为基于GNU所以,对 ...
- Oracle OCP 1Z0-053 Exam Topics
根据OU官方发布的考试大纲,OCP 1Z0-053考点如下: 1. Database Architecture and ASM Describe Automatic Storage Managemen ...
- linker command failed with exit code
转载 : http://blog.csdn.net/chengwuli125/article/details/25051741
- 简析GeoServer服务的内部文件组织以及GeoServer自动化服务发布工具的开发思路
文章版权由作者李晓晖和博客园共有,若转载请于明显处标明出处:http://www.cnblogs.com/naaoveGIS/. 1.前言 通过GeoServer发布的服务,在GeoServer内部有 ...
- 解读SDN的东西、南北向接口
北向接口(Northbound Interface)是为厂家或运营商进行接入和管理网络的接口,即向上提供的接口. 南向接口(Southbound Interface)是提供对其他厂家网元的管理功能,支 ...
- Scala 中下划线的用途
转载自:https://my.oschina.net/leejun2005/blog/405305 Scala 作为一门函数式编程语言,对习惯了指令式编程语言的同学来说,会不大习惯,这里除了思维方式之 ...
- java数据类型
对String来说,”==“是用来判断两个字符串(对象)的地址是否相同,即判断是否是同一个字符串的应用.”equals()“则是判断两个字符串(对象)的值是否相等,如果相等则返回true.一般情况下, ...