|
Prev: Discount Pro Bowl NFL jersey, NBA Jersey, NHL jersey, MLB jersey
Next: What is gvfs-fuse-daemon?
From: Magician on 5 May 2008 12:53 1) How does one auto-format code in vi???? 2) Any good forums for vi?? On May 1, 10:56 pm, Magician <jadoo.d...(a)gmail.com> wrote: > Hi, > In emacs if i press a tab i can format my code. I can align my do's > like > > do ii=2, N > write(*,*)ii, sum, frac(ii), rhoe, Z(ii) > sum=sum+frac(ii)*Z(ii)*rhoe > enddo > > how do I do the same in vi ?
From: Dave B on 5 May 2008 13:01 On Monday 5 May 2008 18:53, Magician wrote: > 2) Any good forums for vi?? Try comp.editors. -- D.
From: The Natural Philosopher on 5 May 2008 15:16 Magician wrote: > 1) How does one auto-format code in vi???? > 2) Any good forums for vi?? > > > On May 1, 10:56 pm, Magician <jadoo.d...(a)gmail.com> wrote: >> Hi, >> In emacs if i press a tab i can format my code. I can align my do's >> like >> >> do ii=2, N >> write(*,*)ii, sum, frac(ii), rhoe, Z(ii) >> sum=sum+frac(ii)*Z(ii)*rhoe >> enddo >> >> how do I do the same in vi ? > By hand
From: Dances With Crows on 5 May 2008 16:40 The Natural Philosopher staggered into the Black Sun and said: > Magician wrote: >> How does one auto-format code in vi? > By hand Not even close. ":help format" says: 'formatprg' 'fp' string (default "") global not in vi The name of an external program that will be used to format the lines selected with the |gq| operator. The program must take the input on stdin and produce output on stdout. "fmt" is such a program. If the 'formatexpr' option is not empty it will be used instead. Otherwise, if 'formatprg' is an empty string, the internal format option will be used (see |C-indenting| ). ....I don't do FORTRAN, but if there is some sort of equivalent for /usr/bin/indent that works on FORTRAN code, the solution is obvious. -- For every new foolproof invention there is a new and improved fool. My blog and resume: http://crow202.dyndns.org:8080/wordpress/ Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
From: A Watcher on 6 May 2008 00:12 Magician wrote: > 1) How does one auto-format code in vi???? > 2) Any good forums for vi?? > > > On May 1, 10:56 pm, Magician <jadoo.d...(a)gmail.com> wrote: >> Hi, >> In emacs if i press a tab i can format my code. I can align my do's >> like >> >> do ii=2, N >> write(*,*)ii, sum, frac(ii), rhoe, Z(ii) >> sum=sum+frac(ii)*Z(ii)*rhoe >> enddo >> >> how do I do the same in vi ? > I use nedit for fortran.
|
Pages: 1 Prev: Discount Pro Bowl NFL jersey, NBA Jersey, NHL jersey, MLB jersey Next: What is gvfs-fuse-daemon? |