1、首先设置vim缩进空格

vim /etc/vim/vimrc 或者vim /etc/vimrc,添加一下文字

set smartindent

set shiftwidth=4   # 缩进四个空格
# 注释符号,根据需要设置 #:set tabstop=4 设定tab宽度为4个字符 #:set shiftwidth=4 设定自动缩进为4个字符 #:set expandtab 用space替代tab的输入 #:set noexpandtab 不用space替代tab的输入

2、打开需要设置 的文件

按Esc进去命令行模式

光标移动到开头,按shift+v,然后按上下方向键选择多行

按shift + < 向前移,按shift + > 向后移

最新文章

  1. iOS流行的开源代码库
  2. html+css基础知识总结
  3. Android笔记:实现点击事件
  4. Nginx reopen reload作用及工作过程
  5. XML的解析方式(Java)
  6. rsync 无密码 传输
  7. PHPExcel上传sae遇到: -1:fail to get xml content
  8. 说说QQ空间SEO
  9. Java Dom解析xml
  10. xmlplus 组件设计系列之九 - 树(Tree)
  11. org.apache.commons.lang下的工具类
  12. JS对象深度克隆
  13. String,StringBuffer,StringBuilder的区别
  14. Mysql5.7数据导出提示--secure-file-priv选项问题的解决方法
  15. bzoj3730 震波 [动态点分治,树状数组]
  16. memoization提升递归效率
  17. 【Java并发编程】9、非阻塞同步算法与CAS(Compare and Swap)无锁算法
  18. 线程池ThreadPoolExecutor整理
  19. python-类里面各种方法的学习补充
  20. decimal, float 和double

热门文章

  1. Cannot add middleware after an application has started
  2. chia P图安装
  3. python常用数据结构模块--collections
  4. django项目初创建报错TypeError: unsupported operand type(s) for /: &#39;str&#39; and &#39;str&#39;
  5. 实现ViewPager一次滑动多页(保持居中)
  6. 2021年RT-Thread开发者大会
  7. 打包exe
  8. re的finditer()
  9. 测试elasticsearch保存时报找不到类型的错误
  10. Python中用eval将字符串转换为字典时候出错:NameError: name ‘null’ is not defined的解决方法