您的位置:首页 > 运维架构 > Linux

CENOS7配置vim自动排版,显示行号

2018-02-01 20:36 253 查看
vim ~/.vimrc

写入如下信息通过 gg = G 可实现自动排版

    set nu

    filetype on

    set history=1000

    set background=dark

    syntax on

    set autoindent

    set smartindent

    set tabstop=4

    set shiftwidth=4

    set showmatch

    set guioptions-=T

    set vb t_vb=

    set ruler

    set nohls

    set incsearch

    if has("vms")

        set nobackup

    else

        set backup

    endif

    filetype plugin indent on

    set cindent shiftwidth=4
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Centos基础