Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
Terminal不能高亮显示shell脚本?
Apps Section
633
views ·
2
replies ·
To
floor
Go
yuanwhy
deepin
2016-01-23 06:31
Author
是这样的,我在terminal下用vim打开shell脚本,发现脚本不能语法高亮,都是绿色;但是有一个奇怪的事情,我在terminal下ssh登录某远程机器后,vim编辑远程机器的shell脚本就是高亮的。 那么问题来了,我的terminal如何设置把本地shell脚本语法高亮?
Reply
Like 0
Favorite
View the author
All Replies
Bluek404
deepin
2016-01-23 06:41
#1
因为你没让 vim 开启高亮
:syntax on
Copy the Code
或者在 ~/.vimrc 里加上 syntax on
推荐还是先找个基础教程看看吧
Reply
Like 0
View the author
yuanwhy
deepin
2016-01-23 06:49
#2
果然是,谢谢,vim还在学习中,感谢提醒~
Reply
Like 0
View the author
Please
sign
in first
New Thread
Rankings
7 days
30 days
90 days
1
buyike
114 posts
2
阿尼樱奈奈
89 posts
3
chmod700
88 posts
4
度深蓝
67 posts
5
花雨落逝
65 posts
6
Merlin
56 posts
Popular Events
More