Version 5 (modified by wade, 11 years ago) (diff) |
---|
Setting
- set autoindent 開啟自動縮排
- set shiftwidth=4 自動縮排 4 空格
- set softtabstop=4 shiftwidth 和 tabstop 盡量一致
- set nu 顯示行數
- set hls 高亮度反白顯示搜尋結果
- " 註解用
Windows Unicode 問題
- http://sean0310.blogspot.tw/2013/04/windows-gvim-unicode.html
- http://electronic-blue.wikidot.com/blog:33
- 增加:C:\Program Files\Vim\_vimrc
let $LANG="zh_TW.UTF-8" set langmenu=zh_tw.utf-8 set encoding=utf8 "reload menu with UTF-8 encoding source $VIMRUNTIME/delmenu.vim source $VIMRUNTIME/menu.vim
- 我的設定:
let $LANG="zh_TW.UTF-8" set langmenu=zh_tw.utf-8 set encoding=utf8 "reload menu with UTF-8 encoding source $VIMRUNTIME/delmenu.vim source $VIMRUNTIME/menu.vim set nocompatible source $VIMRUNTIME/vimrc_example.vim source $VIMRUNTIME/mswin.vim behave mswin set hls colorschem torte "set tabstop=4 set softtabstop=4 set shiftwidth=4
Example
set nocompatible set hls colorschem torte "set tabstop=4 set softtabstop=4 set shiftwidth=