老地方冰果室交流區
http://ubb.frostyplace.com/

How to setup <tab> in gvim?
http://ubb.frostyplace.com/viewtopic.php?f=13&t=6834
1 頁 (共 1 頁)

發表人:  luisehsu [ 03/26/2003 6:20 am ]
文章主題 :  How to setup <tab> in gvim?

sorry, this question might not be really relative to os x but unix:
1. in bbedit i edit a line like:
<tab><tab><tab>this is a test
when i move the cursor, the location of cursor would jump to each <tab>'s position
2. in gvim i edit the same line:
<tab><tab><tab>this is another test
save it, and open in bbedit. it seems <tab> is replaced by spaces, and cursor is moved space by space but not by <tab>
3. however, if i open the file edited by bbedit in gvim, the <tab> shows the correct behavior
4. in my .vimrc i setup
set ts=4 "tabstop"
set sw=4 "shiftwidth"
that's all
5. how do i setup the <tab> in gvim so the <tab> is not replaced by space
6. hope my description is clear enough to be understood :lol:

thanks

發表人:  luisehsu [ 03/27/2003 8:10 am ]
文章主題 :  Re: How to setup <tab> in gvim?

自問自答:
set noet
其實我並不是很懂expand tab 與 suppress tab 之間的不同
有人能解釋一下嗎?

好像版上的人用emacs比較多 :D

發表人:  digdog [ 03/27/2003 10:33 am ]
文章主題 : 

expand tab 是把 tab expands 成 blanks

代碼:
expand -4 tabfile > blankfile


suppress tab 應該就是相反吧?

1 頁 (共 1 頁) 所有顯示的時間為 UTC + 8 小時
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/