zoukankan      html  css  js  c++  java
  • Debian下vi的问题

    安装了Debian,却发现其自带的vi存在问题:
    1)不支持语法高亮提示
    2)不支持Backspace键的删除功能

    原来Debian中自带的vi是vim-tiny,程序本身就是不支持语法高亮和Backspace删除功能。

    可以使用以下办法解决:
    1)重新安装其它版本的vi
    apt-get install vim vim-runtime exuberant-ctags
    2)配置~/.vimrc
    添加syntax on

    vi常用的配置选项
    syntax on
    set number
    set showcmd
    set incsearch
    set expandtab
    set showcmd
    set history=400
    set autoread
    set ffs=unix,mac,dos
    set ignorecase
    set hlsearch
    set shiftwidth=2
    set wrap
    set ai
    set si
    set cindent
    set termencoding=unix
    set tabstop=2
    set nocompatible
    set showmatch
    set fileencodings=utf-8,gb2312
    set ttyfast
    set imcmdline
    set previewwindow
    set showfulltag

  • 相关阅读:
    synchronized的原理
    ThreadLocal是什么?使用场景有哪些?
    什么是死锁?死锁产生的原因?
    15-错误
    14-异常处理
    13-接口
    12-方法
    11-结构体
    10-指针
    09-字符串
  • 原文地址:https://www.cnblogs.com/allegro/p/2006430.html
Copyright © 2011-2022 走看看