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 ...
随机推荐
- 【iOS】NSNumberFormatter
介绍 NSNumberFormatter 应该可以满足你对数据形式的一般需求,值得了解一下. NSNumber *num1 = [NSNumber numberWithDouble:1234567.8 ...
- grape动态PHP结构(二)——管理后台
一.概述
- Oracle11g中数据的倒库和入库操作以及高版本数据导入低版本数据可能引发的问题
文章版权由作者李晓晖和博客园共有,若转载请于明显处标明出处:http://www.cnblogs.com/naaoveGIS/. 1.前言 在10g之前,传统的导出和导入分别使用EXP工具和IMP工具 ...
- 【十大经典数据挖掘算法】k-means
[十大经典数据挖掘算法]系列 C4.5 K-Means SVM Apriori EM PageRank AdaBoost kNN Naïve Bayes CART 1. 引言 k-means与kNN虽 ...
- tomcat源码剖析系列
一个简单的web服务器 一个简单的servlet容器 连接器 创建httpRequest 创建HttpResponse 容器 生命周期 日志记录器 载入器 Session管理 关闭钩子 启动tomca ...
- C# 之 DataReader 和 DataSet 的区别
本文转载自:http://www.cnblogs.com/xinaixia/p/4920630.html 1. 获取数据的方式[1]DataReader 为在线操作数据, DataReader会一直占 ...
- should be mapped with insert="false" update="false
SSH项目出现了 should be mapped with insert="false" update="false 错误,仔细检查后发现,是两个不同的属性映射了表中的 ...
- 【nodejs笔记2】认识express框架
app.js:启动文件,或者说入口文件package.json:存储着工程的信息及模块依赖,当在 dependencies 中添加依赖的模块时,运行 npm install,npm 会检查当前目录下的 ...
- Oracle学习总结_day06_视图&序列&索引
本文为博主辛苦总结,希望自己以后返回来看的时候理解更深刻,也希望可以起到帮助初学者的作用. 转载请注明 出自 : luogg的博客园 谢谢配合! day 06 视图,索引,序列 视图 什么是视图: 视 ...
- 【JAVA并发编程实战】9、锁分段
package cn.study.concurrency.ch11; /** * 锁分段 * @author xiaof * */ public class StripedMap { //同步策略:就 ...