Just because it's not the most discoverable interface doesn't mean it's user hostile. I wish more software designers would look at vim as an example. A text editor falls into the category of software which users spend a ton of time using. For those types of software a steeper learning curve is completely accpeptable if it means the users can operate the software without even consciously thinking about it once they've learned how to use it.
Yes, vim is a non-discoverable interface.
http://www.google.com/search?q=discoverable+interface
( Side note: from that search I found this:
http://www.catb.org/~esr/writings/taouu/html/ch01s01.html
There it lists "... concision, expressiveness, ease, transparency, and scriptability." It then expands on each, but mysteriously quote "Discoverable" in place of "scriptability." Very odd.
But I digress ...)
Now the question is - without having to wade through plodding tutorial after plodding tutorial, how can we help people discover the interface? This doesn't just apply to vim, it applies to your web site, or application, or even your company procedures.
It's now a long time since I learned about :sp and ctrl-w to create and move between windows in vim. How can we help others find these things? How can we help them find the fast way of doing things on our web facility?
As a parting note - I wouldn't equate efficiency to "user-friendly."
fortune in /etc/profile is something I miss about older Unixes and Unixalikes that seems to be evolving away.
For me "discover" means "edit without the mouse." Once you do that, you're hooked - you can discover the voodoo magic at your leisure, from then on.
Second problem: And even then, you can't find it in the help (it's organized like a professional index - like that of a legal textbook - you have to know what you're looking for before you can find it). Google solves this problem.
Google also helps solve the first problem, of "what to search for": you search by describing the difficulty or problem you have. A brilliant resource for this is Stackoverflow. It's works well for developer-centered, technical questions. The internet is the vim help: "a user generated FAQ". But this is just a way to cope with poor discoverability - the real answer is to design the interface to be discoverable.
It's not exactly laziness, it's more that I got really spoilt at some point in the past by writing my own editor, but maintaining and porting it to new platforms as well as lots of work on customer machines has made it infeasible to keep the project going.
So, I use vim. But at the bare minimum level, I really should go and do something about that.
Thanks for the prod!
Also, hjkl is the most beautiful thing I've ever experienced, I constantly wish TextMate and VisualStudio gave me the separation from edit/navigate mode like VIM does.
That said, it does depend on what kind of development you're doing. I think that in some cases, you can make life harder for yourself by straying from what most developers in your chosen language/framework are using. If I need to code up some .Net stuff, I'm going to use the MS tools. Likewise, if I'm doing heavy Java work, I'm going to likely use Eclipse (even if it's a tad bloated for my taste). If I'm on the Mac doing iPhone development, I'm going to use XCode. Sure, I could use vim for all of the above, but these IDEs are already very well optimized for their respective languages, and vim feels a bit out of place for me.
BUT everything goes downhill when the "window" arrangements are messed up. I am like, WTF did this open in the upper window. HTF do I move this "window/screen" from A to B. When this happens, I restart Vim and then open the files again. Really annoying. I wonder how expert Vim users go about this issue? Any tips?
I prefer using tabs with Vim. Here's a short overview:
* :tabnew to open a new tab.
* :tabe <FILENAME> to edit a file in a new tab.
* :q or :close to close a tab.
* :tabnext and :tabprevious to move between tabs.
* Ctrl+PgUp and Ctrl+PgDown are bound to :tabnext and :tabprevious. On my MacBook, I bind those to Cmd+[ and Cmd+].
* And, of course, :h tabs to find help.
map th :tabnext<CR> map tl :tabprev<CR> map tn :tabnew<CR> map td :tabclose<CR>
This goes for Emacs, too. I get the feeling I've never really used these tools the way they're meant to be used.
After that, being around other Vim users (in person, on the vim-users mailing list, or subscribing to the !vim group on identi.ca, etc.) is best - being able to ask someone "Is there a better way to do X?" or have someone watching over your shoulder say "I can't believe you're doing that the slow way!" is a great way to learn.
The best long-term solution, I've found, is to remember that laziness is one of the great Programmer Virtues, and pay attention whenever some editing task gets tedious, and take a moment to look for a solution in the (amazing complete and well-indexed) Vim online help (":help") and perhaps the Vim Tips site (http://vim.wikia.com/)
http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial...
http://unxutils.sourceforge.net/
Doing so, not only can I use them in vim (!sort, !ls, etc), but I also get a friendlier cmd :)
You can use it natively, and it works fine too, but I really like my unix utils
Check it out: http://derekwyatt.org/
[Original source seems to be unavailable at the moment]:
Interview with Bill Joy, August 1984, Unix Review magazine http://74.125.95.132/search?q=cache:N14AkASeqMoJ:www.cs.pdx....