bestlong 怕失憶論壇's Archiver

bestlong 發表於 2006-10-18 23:43

vim

[url=http://www.vim.org/]VIM 官方網站[/url]

網路教學
[url]http://greenisland.csie.nctu.edu.tw/wp/category/comuter/vim/[/url]

環境設定檔 .vimrc 放在家目錄下[code]set nomodeline
set termencoding=utf-8
set encoding=utf-8
set fileencoding=utf-8[/code]

bestlong 發表於 2010-9-27 21:50

在編輯時要將輸入的 tab 鍵直接轉換成多個 spase[code]:set expandtab[/code]取代所有 tab 成為 space[code]:retab![/code]設定 tab 顯示的寬度為 4 個空白(預設為 8 個)[code]:set tabstop=4[/code]

bestlong 發表於 2010-9-27 22:02

VIM 的縮排操作

一般模式下按下 V 後再按下 = 會自動進行縮排

一般模式下連續輸入兩次 < 會將該行減少縮排

一般模式下連續輸入兩次 > 會將該行增加縮排

不過此時的移動的距離是由 shiftwidth 來決定

bestlong 發表於 2010-9-27 22:03

[url=http://rickey-nctu.blogspot.com/2009/02/make-vim-more-powerful-cont-and-prolog.html]打造自己的VIM[/url]
頁: [1]

Powered by Discuz! X1.5 Archiver   © 2001-2010 Comsenz Inc.