Last active
December 10, 2015 01:47
-
-
Save yangsheng1107/99ebb757a3bc560095c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"檢查文件的類型 | |
filetype on | |
syntax on | |
" 自動縮排:啟用自動縮排以後,在貼上剪貼簿的資料時排版可能會亂掉,這時可以手動切換至貼上模式 :set paste 再進行貼上。 | |
set ai | |
set autoindent | |
set cindent | |
set smartindent | |
"""""""""""""游標,滑鼠""""""""""""" | |
" 啟用行游標提示。 | |
set cursorline | |
" 只在 Normal 以及 Visual 模式使用滑鼠,也就是取消 Insert 模式的滑鼠, | |
set mouse=nv | |
"""""""""""""搜尋""""""""""""" | |
" 搜尋不分大小寫。 | |
set ic | |
"高亮查找 | |
set hlsearch | |
"快速匹配 | |
"set incsearch | |
"""""""""""""排版""""""""""""" | |
" 使用空白取到 Tab。 | |
set expandtab | |
" 自訂縮排 (Tab) 位元數。 | |
set tabstop=4 | |
set shiftwidth=4 | |
" 字數過長時換行。 | |
set wrap | |
"set nowrap " 不換行。 | |
" 捲動時保留底下 3 行。 | |
set scrolloff=3 | |
"顯示行號 | |
"F5 開啟(預設),Ctrl+F5關閉 | |
set nu | |
map <F5> <Esc>:set nu<CR> | |
map <C-F5> <Esc>:set nonu<CR> | |
"""""""""""""編碼""""""""""""" | |
" 文字編碼加入 utf8。 | |
set enc=utf8 | |
"""""""""""""其他""""""""""""" | |
" 標記關鍵字。 | |
set hls | |
" 關閉嗶嗶聲。 | |
set noeb | |
" 自動切換當前目錄。 | |
set autochdir | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment