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

  • 相关阅读:
    Golang学习
    Golang学习
    基础知识
    Golang学习
    基础知识
    hyper-v server 2016安装,客户端远程管理
    inotifywait命令
    CENTOS 7发送邮件测试
    NFS学习
    awk命令
  • 原文地址:https://www.cnblogs.com/allegro/p/2006430.html
Copyright © 2011-2022 走看看