zoukankan      html  css  js  c++  java
  • Windowns下使用SecuretCRT编写脚本增加高亮

       作者:邓聪聪 

    secureCRT设置高亮
    1)修改环境变量:export TERM=xterm-color

    2)增加VIM高亮:vim ~/.vimrc 
     set syntax=on
     colorscheme evening
     set autoindent
     
     全局(所有用户)vim配置文件路径:/etc/vimrc
     syntax on
    set hlsearch
    colorscheme desert   #主题及样式 murphy/blue/slate/evening/ron/pablo
    set nocompatible
    set backspace=indent,eol,start

    source /etc/profile  #使能配置生效

    设置客户端的CRT

     
    2:

    if &term=="xterm"
    set t_Co=8
    set t_Sb=dm
    set t_Sf=dm
    endif

    3:

    [root@cacti ~]# cat  ~/.vimrc 
    syntax on
    " ==============================================     
    " " General settings     
    " " ==============================================     
    set nocp     
    set ru     
    set nu     
    " "set cin     
    " "set cino = :0g0t0(sus     
    set sm     
    set ai     
    set sw=4    
    set ts=4    
    set noet     
    set lbr     
    set hls     
    "set backspace = indent , eol , start     
    "set whichwrap = b , s , < , > , [ , ]     
    "set fo+ = mB     
    set selectmode =     
    "set mousemodel = popup    
    set keymodel =     
    "set selection = inclusive    
    "set matchpairs+ =     
    " " ==============================================     
    " " Cursor movement     
    " " ==============================================     
    " "nnoremap gj     
    " "nnoremap gk     
    " "vnoremap gj     
    " "vnoremap gk     
    " "inoremap gj     
    " "inoremap gk     
    " "nnoremap g$     
    " "nnoremap g0     
    " "vnoremap g$     
    " "vnoremap g0     
    " "inoremap g$     
    " "inoremap g0     
    " "nmap :confirm bd     
    " "vmap :confirm bd     
    " "omap :confirm bd     
    " "map! :confirm bd     
    " syntax on     
    "set foldmethod=syntax    
    if (has( " gui_running " ))     
    set nowrap     
    set guioptions+=b     
    colo inkpot     
    else     
    set wrap     
    colo ron     
    endif     
    "let mapleader = " , "    
    if !has("gui_running")     
    set t_Co=8    
    set t_Sf=^[[3%p1%dm     
    set t_Sb=^[[4%p1%dm     
    endif
  • 相关阅读:
    图像全參考客观评价算法比較
    单片机project师必备的知识
    ACM-并查集之小希的迷宫——hdu1272
    ArcGIS教程:加权总和
    九度 题目1368:二叉树中和为某一值的路径
    解决solr搜索多词匹配度和排序方案
    具体解释linux文件处理的的经常使用命令
    Hotel
    Unity3D 射线指定层获取GameObject 注意 LayerMask
    ios设计一部WindowsPhone手机
  • 原文地址:https://www.cnblogs.com/dengcongcong/p/8797413.html
Copyright © 2011-2022 走看看