nnoremap Q <nop>
in my .vimrc. No more "how did I get HERE?"This way, I can skip the awkward @q step, and keep hitting Q instead of @@ to re-run the macro.
it only took about a week to retrain myself for it.
here's the command... put it at the top of your vimrc before anything else so it works with your plugins.
let mapleader=" "
I just realized I only use my left thumb with the spacebar, so the ambidextrous argument doesn't fly for me.
But I did realize space currently does nothing for me in normal mode. So I made it work like less/more, i.e., it pages the screen down:
nnoremap <space> <C-d> nnoremap <S-space> <C-u>
nnoremap <space> <C-d>
The shift-space doesn't work.
So they have a mode you enter when pressing q (which quits many other programs) that you can't leave if you don't know the leave command?
This is comedy gold. :D
Vim to me is like having a smooth technical conversation with a work partner. Emacs is like conversing with my partially deaf grandpa.
I really did start using Emacs when I started learning Clojure(/Script), though, and made it my main language and platform investment. And org-mode had been playing a part in my want of switching for a while, building up for years. I also told myself it'd be better to hack in a lisp but Elisp is so fucked up I still haven't mustered up the courage to properly learn all its old and unexpressive idiosyncracies (god, even creating a closure requires explicit verbosity!) Meanwhile I don't think I can bear VimScript anymore--since getting into Clojure my language standards have gone considerably up. As a result I do the odd hack but haven't developed more powerful plugins in a while, not in elisp nor vimscript; I'm in a psychological limbo there. Kinda hoping Guile-Emacs takes off so I can do stuff in scheme.
Out of curiosity, what do you mean by 'verbosity' in this case? I just Googled and it looks like Elisp uses the same (lambda (arg) form) syntax, like CL---is this what you're referring to?
http://www.emacswiki.org/emacs/LexicalBinding
...for some of the issues.
Actually, when entering Ex mode you get a little helpful message that says Type "visual" to go to Normal mode.
If you do press "q" though, you're in macro mode, and you don't get any helpful message that tells you that you have to press "q" another time to exit it.
Vim always seems like magic to me. I always use nano/pico when I need to edit something in the command line.
I like my shells to have white backgrounds. I don't know why, but it's just restful to my eyes. Nano's default syntax highlighting on bash scripts is to highlight strings in bright yellow, which on a black backdrop makes sense, but on white is impossible to read.
It took years of working with shell scripts, and a familiar litany of "I'll just look up how to change this... [one hour later] I have no idea, let's just change my Konsole background to black for a little while..." before one day I was like, "Dammit, I just need to change this one little thing over here" and typed vi instead, thinking that it was so simple that surely it'd have no highlighting.
But it did have highlighting, and it was highlighting which wasn't bonkers like nano's was.
I had struggled with vi a lot before. I did not like it. Still don't. The thing is, they could probably have won me over a million years earlier by starting me off at insert mode on the first line! It is modal, and I don't even like the modality of my cruise control system on my car, let alone the modal nature of vi -- but at least a text editor should dump a beginner in the mode which, y'know, edits text. I'm only just getting used to hjkl keys, and only then because of nethack. I don't know enough to make super expert use of vim.
But, all that aside, it won because it didn't force me to squint at yellow-on-white text every time I was SSH'ed into a system which needed me to edit string-laden syntax-highlighted files.
I wouldn't like "open in insert mode" at all - if I'm opening an existing file, I probably want to edit it, not just add text (especially not at the beginning) - which means the first thing I'm probably wanting to do is navigate, which is much easier done in command mode.
When opening a new file, there's a better argument for starting in insert mode, but even then I'm likely to want to populate the buffer with the output of some command.
Of course, hitting escape first isn't disastrous - but neither is hitting i before you type.
All of that said, my defaults don't need to be your defaults! Add startinsert to your vimrc to get the behavior you want:
echo startinsert >>~/.vimrcI'm just observing that I would have understood it much more rapidly if I'd started in insert mode my first few times, because then the expressive command mode enabled by the Esc key seems "layered onto" the basic insert-mode editing that a new user expects to be the main purpose of a text editor. From insert mode, you can page down and delete and insert pretty straightforwardly; and you get gently introduced to command-mode when you say "hey, how do I save this document now?". So pedagogically it would have really helped.
Used nano just for some small changes when using SSH.
If my only use were editing files in CLI, though, I'd have always used nano and not learned vim, as well.
Hah, for many that is Vim itself!