How to setup <tab> in gvim?
發表於 : 03/26/2003 6:20 am
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
thanks
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
thanks