-----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? | |> 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. | 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. | |> :!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 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. |> :%s/replace_me/with_this/g | |> this is not nice Doesn't bother me but I agree its ugly. |> <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. | |> 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>[ |> 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 |> What about if you forgot to su as I often do :-) Is that any diffrent in gphpedit? :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. | 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. | |> 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-----
