j*s
3 楼
Hi, thanks.
But in vi, how can Ienable that one?
I mean when I program, I always put some time on the format which I should not
spend time on it.
I would prefer my program is easy to read, with a good format.
I did it easily in BC3.1 in dos, but seems sth wrong in unix.
【在 t*******a 的大作中提到】
: in vi, you can just enable autoindent and everything will go nicely
: in emacs, things could be messed up. then you need to select the text you wanna
: indent and M-x indent-region
But in vi, how can Ienable that one?
I mean when I program, I always put some time on the format which I should not
spend time on it.
I would prefer my program is easy to read, with a good format.
I did it easily in BC3.1 in dos, but seems sth wrong in unix.
【在 t*******a 的大作中提到】
: in vi, you can just enable autoindent and everything will go nicely
: in emacs, things could be messed up. then you need to select the text you wanna
: indent and M-x indent-region
bz
4 楼
user expand or indent when you think you feel it is the right time to do it.
【在 j****s 的大作中提到】
: Hi, thanks.
: But in vi, how can Ienable that one?
: I mean when I program, I always put some time on the format which I should not
: spend time on it.
: I would prefer my program is easy to read, with a good format.
: I did it easily in BC3.1 in dos, but seems sth wrong in unix.
【在 j****s 的大作中提到】
: Hi, thanks.
: But in vi, how can Ienable that one?
: I mean when I program, I always put some time on the format which I should not
: spend time on it.
: I would prefer my program is easy to read, with a good format.
: I did it easily in BC3.1 in dos, but seems sth wrong in unix.
j*s
9 楼
Thanks all!!!
And I remember vim can display color for C program. But I do not know how.
How can I know the feature of vim?
Thanks
【在 q***e 的大作中提到】
: Better use vim, I am not sure whether autoindent or smartindent
: is standard vi feature or vim extended feature. Anyway, vim provide
: more nice feature for programming.
And I remember vim can display color for C program. But I do not know how.
How can I know the feature of vim?
Thanks
【在 q***e 的大作中提到】
: Better use vim, I am not sure whether autoindent or smartindent
: is standard vi feature or vim extended feature. Anyway, vim provide
: more nice feature for programming.
g*t
10 楼
In vim you just hit the following key in the command mode.
your file format will autoindented and saved,
gg=G:w
and following key to display color,
and following key to know the feature of vim,
your file format will autoindented and saved,
gg=G:w
and following key to display color,
and following key to know the feature of vim,
j*s
15 楼
why "gg=G:w" cannot work?
IT said no such command.
I press : first, then type that.
I do not know why.
Thanks
【在 g*****t 的大作中提到】
: In vim you just hit the following key in the command mode.
: your file format will autoindented and saved,
: gg=G:w
: and following key to display color,
: and following key to know the feature of vim,
IT said no such command.
I press : first, then type that.
I do not know why.
Thanks
【在 g*****t 的大作中提到】
: In vim you just hit the following key in the command mode.
: your file format will autoindented and saved,
: gg=G:w
: and following key to display color,
: and following key to know the feature of vim,
w*g
18 楼
I like that too. Another feature I like is that it can turn all the keywords
in my F90 code into Capital...
【在 w******e 的大作中提到】
: The way I like Xemacs is that it can do great job in automatic indenting.
: Place your cursor on the start "{", and press ctrl+alt+q all together. It will
: indent the whole region to your matching "}".
in my F90 code into Capital...
【在 w******e 的大作中提到】
: The way I like Xemacs is that it can do great job in automatic indenting.
: Place your cursor on the start "{", and press ctrl+alt+q all together. It will
: indent the whole region to your matching "}".
相关阅读
够执着的 --- Re: 我的alia放在script里为什么不工作?Where to set fontpath?help for apacheQuestion about chinese input in cxtermxterm in UNIXWho can recommend some good books on Unix Administration急问。。。urgent...在线等。。。看看我的第一个小script为什么不工作AIX里sh登陆后怎样才能自动执行.profile文件啊?Help: How to adjust the resolution and frequency in a Sun workstation?beginner's question: Emacs vs. vihelp: how to copy files simultaneously to several folders大虾,看看这是咋回子事尼!question about CVSPostscriptxemacsssh client on Solariswhat wrong with these thread program. Thanks for helping紧急请教:Unix的ls命令cygwin 问题一问