2009-12-29
2009-12-18
一些 VIM 的設定
記一下 VIM 的設定
set fileencodings=utf-8,big5
"set termencoding=utf-8
"set encoding=utf-8
set fileencodings=utf-8,big5
" 設定 tab 預設 3 格(並且自動把 tab(\t) 轉換成 空白)
set expandtab
set shiftwidth=3
set softtabstop=3
set tabstop=3
" Maximum 96 characters in line
set textwidth=96
"" Set filetype
"set filetype=php
" 指定不折行
"set nowrap
"set backup
"set backupdir=~/.bak
"set backupdir=D:\bak
" 註解 深藍色=>綠色
" hi Comment ctermfg=Green
" 搜尋到的字加 hilight
set hlsearch
" 註解 深藍色=>淺藍色
highlight Comment ctermfg=darkcyan
highlight Search term=reverse ctermbg=4 ctermfg=7
highlight Normal ctermbg=black ctermfg=white
" 設定摺疊 {{{ , }}}
set foldmethod=marker
set cindent
set smartindent
highlight Comment ctermfg=darkcyan
highlight Search term=reverse ctermbg=4 ctermfg=7
highlight Normal ctermbg=black ctermfg=white
filetype plugin on
filetype indent on
set fileencodings=utf-8,big5
"set termencoding=utf-8
"set encoding=utf-8
set fileencodings=utf-8,big5
" 設定 tab 預設 3 格(並且自動把 tab(\t) 轉換成 空白)
set expandtab
set shiftwidth=3
set softtabstop=3
set tabstop=3
" Maximum 96 characters in line
set textwidth=96
"" Set filetype
"set filetype=php
" 指定不折行
"set nowrap
"set backup
"set backupdir=~/.bak
"set backupdir=D:\bak
" 註解 深藍色=>綠色
" hi Comment ctermfg=Green
" 搜尋到的字加 hilight
set hlsearch
" 註解 深藍色=>淺藍色
highlight Comment ctermfg=darkcyan
highlight Search term=reverse ctermbg=4 ctermfg=7
highlight Normal ctermbg=black ctermfg=white
" 設定摺疊 {{{ , }}}
set foldmethod=marker
set cindent
set smartindent
highlight Comment ctermfg=darkcyan
highlight Search term=reverse ctermbg=4 ctermfg=7
highlight Normal ctermbg=black ctermfg=white
filetype plugin on
filetype indent on
程式排版Astyle
2009-12-07
讓 GVim 開啟時最大化
因為我是混用 debian(Linux) 和 windows, 要讓 windows 下的 GVim 開啟時最大化, 在設定檔 .vimrc ( _vimrc )裡加上 au GUIEnter * simalt ~x
---
---
訂閱:
文章 (Atom)