Does anyone know of an editor better than emacs? I'm also wondering how I can change the default encoding to utf-8, on emacs or anything else.
Name:
QuestionC!mrJgdAaFTo2006-06-02 16:21
A lot of people think that the point of vim is the fact that it's rudimentary, hard to use, or more "hack-ish". You are idiots. You fools who think vim is just --Notepad. Use vim because in vim you can do anything -- and you can do it fast.
In the University, we had to program on the mainframe. Our options were vim, nano, and emacs. This was just 5 years ago -- the programs weren't any different from how they are today. Our connection was blazing fast. We just didn't know how to edit efficiently without a mouse.
I picked vim because of the syntax highlighting. Even a noob like me could make that work in vim, even over a terminal.
At first... I could turn on syntax highlighting and drudge through editing and saving files.
After a week, I could properly get in/out of insert mode. I could properly save and quit. I stopped hitting the wrong buttons.
Next week, I started 'w' 'b' 'gg' 'G' '$' '^' 'gw' 'gb'. Editing was much faster than with nano. I also started made my own .vimrc file.
Next week, I stopped using the arrow keys all together. 'h' 'j' 'k' 'l' were my friends. The hands never left home keys. Editing speed up. Editing was faster than with a GUI.
Next week, I went through all the options. I customized .vimrc. vim work/looked how I wanted it to. I learned regular expressions. I would search and substitute my files instead of editing them.
Next week I started using :split. I could edit multiple files. I still didn't have to use a mouse or move my hands. I didn't realise this would be possible to do over a terminal.
Now, I just periodically learn things. Stuff I used to use the command line for (grep -n "killIntMatrix" *), it turns out vim can do better and faster '[I' . Macros speed through repetetive edits if I don't know the regex to use.
I still only know what about half the keys do in vim. I still don't fully understand how to use vim.
What what little I do know, vim is a better editor for most tasks than anything that would force me to unnecisarily use the mouse, keys not close to the home row, 3 buttons at a time.
For anything that could be described as 'code' (shell scripts, HTML, C code, WC3 Jass scripts, &ct), vim's perfect.
For writing my resume, vim is useless. If you want to know what editor to use for writing a resume or english paper, use Word.
Oh, btw UTF encoding in vim:
set encoding=utf-8
Pulling up the help file for utf encoding
:help utf