首页 > 系统服务 > 详细

Vim配置文件

时间:2015-08-17 19:43:51      阅读:280      评论:0      收藏:0      [点我收藏+]
# cat ~/.vimrc
set nocompatible
filetype indent on
filetype plugin on
set tabstop=4
set shiftwidth=4
set autoindent
set cindent
set smartindent
set hlsearch
syntax enable
set dict=/usr/share/dict/words
if has(‘statusline‘)
    set laststatus=2
    "Broken down into easily includeable segments
    set statusline=%<%f\ " Filename
    set statusline+=%w%h%m%r " Options
    set statusline+=\ [%{&ff}/%Y] " filetype
    "ASCII/Hexadecimal value of under current cursor
    set statusline+=\ [ASCII=\%03.3b/HEX=\%02.2B]
    "Right aligned file nav info
    set statusline+=%=%-14.(%l,%c%V%)\ %p%%
endif


效果为:

技术分享

本文出自 “天道酬勤” 博客,请务必保留此出处http://lavenliu.blog.51cto.com/5060944/1685327

Vim配置文件

原文:http://lavenliu.blog.51cto.com/5060944/1685327

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!