ssh中vim编辑没有颜色
本文最后更新于 1657 天前,其中的信息可能已经有所发展或是发生改变。

操作系统:debian 7
首先检查终端是否支持256色

tput colors

返回 256 说明支持256色,然后把终端设置成256色模式

setenv TERM xterm-256color

或者

export TERM=xterm-256color

最后修改vim的配置文档

vim /etc/vim/vimrc

注:不同发行版可能位置不一样,可以通过

find / -name vimrc

找出配置文件的位置,然后在vimrc中最后一行加入

syntax on

保存退出即可

如果在这个过程中遇到了其它问题,欢迎在评论区留言,或者Google一下,也欢迎把具体的解决方法留在评论区,以供后来者参考

欢迎转载,不需注明出处,就说是你写的

参考

如有任何问题,欢饮共同探讨

评论

  1. Typicalcat85
    Windows Opera
    5 年前
    2019-12-28 4:10:30

    When I originally commented I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I get four emails with the same comment. There has to be a way you are able to remove me from that service? Thank you!

    • 重新开始
      博主
      Typicalcat85
      Linux Chrome
      5 年前
      2019-12-30 19:18:32

      @Typicalcat85 Actually, my website doesn’t have the checkbox — ” Notify me when new comments are added ” , and for some reason,My website doesn’t send emails to anybody. I think the reason why you may get four emails with the same comment is that you wrote a lot of spam comments on other website. At least on my website,you have wrote eight spam comments.

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇