/vim

Created Wed, 26 Apr 2023 15:58:16 +0900
134 Words

乱码问题

编辑/etc/vim/vim/vimrc文件,加上如下几行:

set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
set encoding=utf-8

多行编辑

1,ctrl+v(shift+v是全行选择)
2,选择区域
3,插入:shift+i后输入插入内容。删除:
4,esc+esc

个人平时使用风格

vi ~/.vimrc
#记入以下内容
set encoding=utf-8
set fileencoding=utf-8
set number
colorscheme murphy
set nu
highlight LineNr ctermfg=grey