vim进阶-自己设置vim编辑器
2017-03-31 14:09
190 查看
我这是最基础的一些vim设置,参考文章http://blog.csdn.net/huiguixian/article/details/6394095
看大牛设置的vim,感觉很花里胡哨,以后慢慢接触:http://www.cnblogs.com/ma6174/archive/2011/12/10/2283393.html
系统vim设置:/etc/vim/vimrc
个人vim设置:~/.vimrc ,没有可以自己建一个
配置如下:
"syntax high light syntax on "show the line number set nu "let the tabstop equal 4 set tabstop=4 "set the autoindent on set autoindent "set the match time is one tenth second set matchtime=1 "high light the search set hlsearch "set the c language indent format set cindent "set the indent width set shiftwidth=4 "set show status on set ruler "set show mode on set showmode
统计vim中查找字符串的数量
比如我有一个log文件,我文件里符合规则的字符是yes,我想查找这个abc.log文件中的yes字符数量,怎么查找呢,如下:
:%s/yes//gn
相关文章推荐
- ubuntu设置crontab的默认vim编辑器
- Vim编辑器基本设置总结
- 将vim编辑器的table键设置为四个字节
- vim编辑器的进阶使用
- Android中vim编辑器进阶的使用介绍
- vim编辑器格式设置
- VIM编辑器设置
- vim编辑器设置Tab键
- 编辑器设置字体时找不到自己安装的字体(Emeditor为例)解决方法
- Centos 下安装与设置VIM编辑器
- 设置vim语法高亮显示和自动缩进 (最后有自己的理解)
- 设置vim编辑器
- vim编辑器设置语法高亮显示和自动缩进
- vim编辑器的设置 记录
- 配置Vim编辑器设置Tab键的格数(长度)
- vim编辑器设置
- linux 设置 vim编辑器显示行号及tab等于四个空格
- Vim 编辑器中的一些设置(字体大小+行号+配色方案)
- vi、vim编辑器内修改table跳过的格数和永久设置行号
- Vim编辑器基本设置总结