配置vim

来源:互联网 发布:反抄袭软件 编辑:程序博客网 时间:2024/06/08 16:36
vim /etc/vim/vimrc 打开vimrc
结尾加上
set ts=4 ts = tabstop,缩进所使用的长度
set expandtab tab转换成空格
set autoindent 自动缩进
set number 显示行号

打开文件时跳到上一次退出的位置
找到Uncomment the following to have Vim jump to the last position when reopening a file取消注释掉下面的if...endif
0 0
原创粉丝点击