This is an S5 slide show. Move your pointer to the lower right corner to see the controls. Click on the "0" to see the speaker notes (aka "print view"). Reload to get back to the slide view. Click anywhere to advance the slides.
Show of hands: what's your primary editor?
This will be episodic: I'll be talking about various things related to the editor that people may or may not know about in the hope of expanding your knowledge
Let's look at the origins of the power and the pain of Vim:
The movement keys J-H-K-L weren't chosen by proximity either: at the time, the terminal Bill Joy was using (Lear Siegler ADM-3A) had the arrow keys on top of those letters - and the Escape Key was where the Tab key currently is (easier to reach).
I've had weird behaviour from "moria:" in the end I edited the moria.vim file to force a dark background at all times.
If you go to https://code.google.com/p/vimcolorschemetest/ , I recommend Chrome. Don't get me wrong, Firefox is my default browser, but the language tests often choke it.
if [ -e /usr/share/terminfo/x/xterm?256color ] then export TERM='xterm-256color' else export TERM='xterm-color' fi~/.vimrc:
if &term=="xterm-256color" set t_Co=256 " "terminal has 256 colors" endif
let mapleader="-" nnoremap <leader>ev :tab drop $MYVIMRC<CR> " _R_e_I_ndent whole file: nnoremap <leader>ri msHmtgg=G'tzt`s
I chose "-" as my leader because it's unused in vim, and very handy if you use the Dvorak keyboard layout. For Qwerty users, ";" is probably the most accessible choice (almost the same location as "-" for Dvorak users).
Tear-down on "-ev": "n" of "nnoremap" means "do this mapping in normal mode." The core is "map," but we also say "noremap" to avoid nasty side effects, ie. "don't interpret other parts through other mappings." Huh? If you've independently mapped a letter but the letter is a part of the new mapping, without "noremap" vim will try to interpret the other letter mapping as well ... It gets very ugly. If that didn't make sense, just trust me and use "noremap" until it becomes clearer.
So I type "-ev" in normal mode to get a response, which is to run the command ":tab drop $MYVIMRC
Pathogen requires more work on your part creating directories and running "git clone ..." commands. Vundle only needs a pointer to a github (or other) repo and it does the checkouts for you. Although you have to do a git clone for Vundle itself.
Truly: if you do a document search, VimScript will respect the case sensitivity setting set by the user. To do it your way you're forced to grab the setting, reset it the way you want it, do your search, and restore the setting (and that's only if you remember ... it's a helluva gotcha)