Hi! I thought the topic was dead because my response was not palatable, check below:
On Mon, 2004-03-29 at 19:33, Eric G Ortego wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > | can you do global search and replace on regexp's in gphpedit? > |> yes > > ok, Can you record the changes and apply the same changes to every > other file? nope :-( but it would be a nice feature to add. > | > |> no, but this is not text editing and specialized tools probably > |> do a better job. > | > > I disagree, I think that there are several shell commands that > manipulate text better than most editors but vi either does it with > those same commands or with very similar ones. > Add the ability to use macros during text-entry is almost always > motivated by the goal of just saving keystrokes. If you have two windows open you do not need vi and works with any application. e.g grep. > | vim does syntax highlighting too, and you can map a key to lookup > | php function info. > | > |> can it map the classes in a directory like gphpedit does? not > |> that > | I use > |> that feature but it does. It also parses the code for you but I > | guess so > |> would > > > map classes? Do you mean out of the files in a directory? Im not sure > the function your looking for but I still think vim can do it. I do not know either but gphpedit can and it is extremely useful for any programmer. You only need to click on the class method and it will be displayed for you; only those under the directory of the file you have opened. > | > |> :!php -l file.php > | > |> then ugly output and then Hit ENTER of type command to continue > | > |> in gphpedit is <F9> > > > you could remap F9 in vim. I suppose you can; if you know how to do it. You could remap that to shutdown you computer, spell check etc. but that is not the point. The point it that gphpedit will parse the output in a much nicer fashion. > > |> I think VI and likely powerful applications such as EMACS violate > |> > |> > |> > | what I > |> believe is the basic principle of UNIX application development > |> where modularity is the rule. I think this is the true power of > |> UNIX. > > > Doug McIlroy, "This is the *Unix* philosophy: Write programs that do > *one thing* and *do it well*. Write programs to work together. Write > programs to handle text streams, because that is a universal interface." > > Doug is the inventor of Unix pipes incase ya didn't know. > I think that at text editing vi kicks the competitions ass' but as the > philosophy goes, gphpedit probably does php editing very well. No I did not know but I would rather thing UNIX programs and any program in general are a stand alone application that can be used from any other program. Anything else, in my opinion, is trying to do to much. > |> :%s/replace_me/with_this/g > | > |> this is not nice > > > Doesn't bother me but I agree its ugly. does not bother me either. > > |> <esc>:w(some command to go back to inser mode, which you already > |> were ) > | > |> that is terrible! Other than entering characters this is or > |> should be the most used sequence therefore easily accessible. > > 'i' is insert mode not <esc>:w... > as a matter of fact there are several ways to get into insert mode, > depending on which line you wish to start on. i, I, o, O, a, A, > 149GA, r, R. > I cannot stand the arrow keys anymore too far away. well, I was assuming you were already typing something. Other wise add those commands and then ... > | > |> You have to go all over the keyboard for such important > | functionalities. > > > And F9 is close? Or the arrow keys ? > ESC is a bit far, try this: ^[ > that's: <ctrl>[ I am talking about saving. Usually ^S in most systems thanks to MacIntosh. Comparet that to the mighty VI. > |> It is like having to get out of your car to push it every time > |> you > | stop. > |> One will give you back pain and the other tendinitis :-) > | > |> Lets change one character > | > |> vi asdf.conf some insert text command change the character <esc> > |> :wq > > > you just need to learn more commands. :help r That is one of the points I did not even make. Would it not be nice if you did not have to learn such common action? ^S > |> What about if you forgot to su as I often do :-) > > Is that any diffrent in gphpedit? yes it is, and if you do forget how to ^S ... well. You are vi guru. > :sh > sudo chown me file.php > exit > :wq > sudo chown you file.php > > |> I just feel more confortable with nano and pico because for my > |> purposes let me work faster. > > > Thats a reason I can understand, but If your a talented typist I would > definatly suggest learning more vi. I am, 120-150 words per second but I would rather use that skill elsewhere. > | For macros I have shell scripts. I much rather use > |> the OS rather than have an application trying to act like it :-) > The macro's I use the most is one that automagicly puts closeing > squigly braces '}' and one that highlights mistyped/mispelled words, > but you can do other things...I think I saw one that solved mazes and > another that printed its own code but compiled in c would do the same. Honestly, I have not written a macro other than those that I need for a C program. However, if I do ever need them I woudl probably do a shell script. I believe that if you cannot use the minimum common denominator you then you should use two of those. I appreciate your response because it expands my knowledge; particularly that of why people do things differently. thank you very much for your response. I use Linux for more than simply parsing a PHP file because I know the power of this system. My part time job is trying to sell people the fact that the can do this for their business. Unfortunately, I am a bad salesperson but I do a few sales every year. Besides a bad sales man I am a very busy programmer and musician. However, VI is never something I would attempt to sell because it does not have a standard that people can relate. take care, I enjoy your comments quite a bit! Alvaro > | > |> I do not even want to get in the presses of wrong command where > |> you are in command mode and you have all kinds of weirds output > |> happening. > > > :help u > > | > |> My favorite <control>s > > > <control>s does nothing but mute output. > You are still in insert mode and still inputing, the input just will > not be revealed untill, > <control>q > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFAaM5h6JFKsKsJemQRAlQ8AJ9ORzeP+GR2pvET0XkWY32T89/OrgCeJ9uf > EcdKY94cH2LF3zJXNsPh90U= > =BBt6 > -----END PGP SIGNATURE----- > > > _______________________________________________ > General mailing list > [email protected] > http://brlug.net/mailman/listinfo/general_brlug.net
