vim easy-align插件使用
2016-06-30 18:04
302 查看
https://github.com/junegunn/vim-easy-align
用vundle安装, 添加下面到vimrc
我感觉就是使用有点难学
先用v选择多行
ga进入easyalign模式
默认向左对其,比如按照空格对其 *<space>
向右对其 <enter>*<space>
居中对其 <enter><enter>*<space>
如果遇到其他字符比如 | , = 啥的,都把空格替换为对应的即可
*可以换成数字,对应后面的第几个字符,*就是全部都指定
比如这个
试试vipga*|
vip是选择多行,ga是进入easyalign模式,*|是指对|对齐
就变成了这样
用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 |
相关文章推荐
- windows 环境下部署spark运行环境 (包含遇到的问题和解决方法)
- android焦点
- mysql联表Update更新的例子
- 通过包名杀死进程的方法
- Timus 1885 Passenger Comfort
- 网页html中嵌入特殊字体-此法利于SEO
- extjs 给baseCombo 添加数据
- /AndroidRuntime(11765): android.view.InflateException: Binary XML file line #19: Error inflating cla
- Django表单
- 清理iOS工程里无用的图片,可瘦身ipa
- 解决IE6双倍边距BUG
- FIR.im发布自己的移动端APP
- Windows下Apache+Tomcat实现应用集群
- Android Volley完全解析(四),带你从源码的角度理解Volley
- NYOJ 81:炮兵阵地(状压DP)
- iOSApp提交上架store详细流程
- Java中不带package的程序和带package的程序编译
- codeforces 685A (水题)
- linux挂载查看、添加与取消
- 操作系统精髓与设计原理(原书第6版)——学习笔记(4)