raspberry中的vi高亮问题

it2022-05-09  22

raspberry中的vi默认无高亮显示

 

a) 设置syntax

  用户目录下 在 .vimrc中添加syntax enable

cd ~ vi .vimrc

  输入

syntax enable

  没有.vimrc文件则新建一个

 

b) 装vim 

sudo apt-get install -y vim

    不过上面的命令总是安装失败,引用http://blog.csdn.net/k_linux_man/article/details/11494021

sudo apt-get update && sudo apt-get install vim && sudo update-alternatives --set editor /usr/bin/vim.basic

     另外,装之前可以先删除先前的vi

sudo apt-get remove vim-common

 

 

PS:一篇很好的文章http://www.cnblogs.com/zhanghaifeng/archive/2012/07/16/2592998.html

  

转载于:https://www.cnblogs.com/JeanYu/p/6340317.html

相关资源:七夕情人节表白HTML源码(两款)

最新回复(0)