vim配置文件.vimrc

20171127備份bash

syntax on           "自動語法高亮
set number          "顯示行號
set autoindent      "回車後自動縮進
set tabstop=4       "tab鍵縮進的空格爲4
set shiftwidth=4    "設置編輯器將4個空格視爲一個縮進
"set showtabline=0  "隱藏頂部標籤欄
set expandtab       "輸入tab時自動將其轉化爲空格
set softtabstop=4   "鍵入tab時實際佔有的列數
":retab!            "將已有的tab轉爲空格 
set backspace=2         " ?

"set cursorline        "突出顯示當前行
"set cursorcolumn        "突出顯示當前列


set autoread            "文件在Vim以外修改過,自動從新讀入
"set nowrap              "設置不自動換行
set fileformat=unix     "設置以unix的格式保存文件
"set cindent             "設置C樣式的縮進格式 ?
set fileencoding=utf-8  "使用utf-8打開文件


set showmatch           "顯示匹配的括號
set matchtime=5         "匹配括號高亮的時間(單位是十分之一秒)
"set scrolloff=5         "距離頂部和底部5行 ?
"set laststatus=2        "在底部顯示狀態欄

set mouse=a          "啓用鼠標
set selection=exclusive
set selectmode=mouse,key
set ignorecase          "檢索時忽略大小寫
set incsearch           "在搜索時,輸入的詞句的逐字符高亮
set hlsearch            "檢索時高亮匹配項
set whichwrap+=<,>,h,l
set helplang=cn         "設置幫助系統爲中文

"個人狀態行顯示的內容(包括文件類型和解碼)
"set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ %{strftime(\"%d/%m/%y\ -\ %H:%M\")}
相關文章
相關標籤/搜索