70

Vim Cheat Sheat for Programmers by Michael Pohoreski

 5 years ago
source link: https://www.tuicool.com/articles/hit/Azemmau
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Update: Version 2.0 is up! There are now 4 versions to chose from:

(If you are wondering what the differences are between the screen and print: the screen has less color variations, and no gradients to make it easier to read.)

  • One designed for on-screen reading:PDF ( Excel 2011 source ),
  • One designed for hard-copy reading:PDF ( Excel 2011 source ),
  • One designed for monochrome printing:PDF (Excel 2011 source), and
  • One designed for Red/Green color bindness -- a "Blue" themePDF ( Excel 2011 source ).

The color coded Legend / Keys helps provide guidance for your experience level.

  •   Green   = Essential
  •   Yellow   = Basic
  •   Orange   / Blue = Advanced
  •   Red   = Expert

If you don't like this version (I'd love to hear why) try these, you may find them more to your liking...

Thanks to all the redditors for the feedback!  ~ Michael

The on-screen 150 DPI .png version is shown... aEviAby.png!web The color hard-copy 300 DPI .png version: N7bQ3m3.png!web The monochrome hard-copy 300 DPI .png version: ErE3Ynr.png!web An color blind hard-copy 150 DPI .png version: fQ3yQr6.png!web

=== Vim Rants ===

Vim has 4bugs

...

  • Unable to map Caps lock key, Ctrl-1, Ctrl-Shift-1, Ctrl-Alt-Shift-1, etc. !
  • Unable to distinguish between TAB and Ctrl-I, ESC and Ctrl-[ ! Any _modern_ editor can tell the diffeence. It is not 1970 anymore people!
  • :set list doesn't work for displaying all whitespace with a seperate character, i.e., listchars is missing an whitespace:+ option.
  • The cursor movement keys h j k l are literally hard-coded throughout the source -- which also effects the netrw :Explore file browser. A user should be able to tell Vim what their 4 basic movement keys are, and ALL commands & Plugins should use THAT. ThePROPERway to write code is to translate key presses into an enumeration, i.e. CMD_MOVE_UP, CMD_MOVE_DOWN, etc, and use THAT in your logic, NOT if (cmd == 'h') ....

Othe then that, Vim is a beautiful code editor!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK