Loading... # 设置 VIM 别名和高亮 grep 词语 ``` echo -e "\nalias vi=vim\nalias grep='grep --color'\n" >>~/.bashrc && source ~/.bashrc ``` # VIM 高亮语法和格式化粘贴 ``` echo -e "\n\nset nobomb set number set showmode set autoindent set smartindent set showmatch set tabstop=4 set softtabstop=4 set shiftwidth=4 set encoding=utf-8 set fileencodings=cp936,gb18030,gbk,gb2312,utf-8,ucs-bom,latin-1 set hlsearch set noignorecase set fileformats=unix set pastetoggle=<F9>\n" >> /etc/vimrc ``` **效果**:  End Thanks!🤴 最后修改:2020 年 09 月 23 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 0 如果觉得我的文章对你有用,请随意赞赏