我的 .vimrc 设置

 

我的 .vimrc 设置

~ $ cat .vimrc

set nocompatiable   "set nocp "
let $LANG = 'en'    "set message language"
set langmenu=en     "set menu's language of gvim. no spaces beside '='"
set encoding=utf-8  ""
set ruler           "显示光标当前位置"
set wildmenu        "按 tab 时命令自动补全"
set number          "set nu"

"=========="
" Indent "
"=========="
set cindent         ""
set smartindent     ""
set autoindent      "参考上一行的缩进方式自动缩进"
set tabstop=4       ""
set softtabstop=4   ""
set shiftwidth=4    ""
set smarttab        ""
set expandtab       ""
filetype indent on  "根据文件类型进行缩进"


"=========="
" Search "
"=========="
set hlsearch         "高亮索索结果"
set incsearch        "输入时就搜索"

set showmode
set smartcase
set relativenumber
set scrolloff=3

set paste           "粘贴时不自动缩进"
set list            "显示不可见字符 :set nolist | :set list!"

显示 16 进制

:%!xxd
:%!xxd -r

« EOF »

If you like TeXt, don’t forget to give me a star :star2:.