vim了解一下
2018-08-06 本文已影响0人
钱学敏
//在终端中编辑“输入内容” 并格式化转出为1.html
echo -e "输入内容" > 1.html

显示行号 :set number







一些技巧
:r 文件名 //在光标处导入文件
:r !date // 在光标处插入时间
快捷键:比如ctrl+p:定义时ctrl+v+p 或者ctrl+v再ctrl+p,之后跟命令组合

配置vim编辑器
vim ~/.vimrc
set nocompatible
syntax on
set t_CO=256
set linespace=16
set autowriteall
set tabstop=8
set expandtab
set softtabstop=4
set shiftwidth=4
set backspace=indent,eol,start