zoukankan      html  css  js  c++  java
  • 【vim】secure crt中vi的颜色设置-语法高亮

    1、secure crt里面会话选项-》终端-》仿真里,将终端设置为支持颜色设置的终比如xterm,同时勾选上ansi颜色和使用颜色方案

    2、secure crt里面会话选项-》终端-》外观里,光标勾选使用颜色,颜色方案可以选择traditional,或者你对该方案进行下编辑

    3、连接到你的服务器,打开.vimrc文件,粘贴上如下代码即可:

    set nocp
    set ru
    set nu
    "use inciden
    set sm
    set ai
    " 缩进
    set sw=4
    set ts=4
    "不展开tab为空格
    set noet
    set lbr
    set hls
    "语法高亮
    syntax on
    "使用语法进行折叠
    set foldmethod=syntax
     if (has("gui_running" ))
    set nowrap
    set guioptions+=b
    colo inkpot
    else
    set wrap
    colo ron
    endif

  • 相关阅读:
    分布式和集群
    c++ >>
    c++ ip地址相关
    c++ ip地址的操作 c版
    c++ 缺少动态库
    c++ dirname() basename()
    shell ulimit -n
    shell 进程查询相关的命令
    shell grep 高亮
    c++ swap 函数
  • 原文地址:https://www.cnblogs.com/mangu-uu/p/3523863.html
Copyright © 2011-2022 走看看