Vi: Difference between revisions

From miki
Jump to navigation Jump to search
(→‎LInks: Refactoring →‎Some Stuff: enable syntax HL)
(/)
Line 18: Line 18:
:set bg=light ''#Use set bg=dark if console background color is dark''
:set bg=light ''#Use set bg=dark if console background color is dark''
:set number
:set number

* Use '''Ctrl+[''' instead of '''Esc'''. It has same effect (same keycode) but it's faster to type. It also works on ''AZERTY'' keyboard.
**... but so far not in ''AndLinux''...

Revision as of 13:05, 8 September 2008

Links

  • General
  • Fun
    • Vi would not be vi without a bit of fun...
    • Very funny material related to emacs vs. vi [1].
  • Guides & Cheat sheets
    • Very good post explaining why vi is superior and defeating common misconception (with examples) [2].
    • Very good graphical cheatsheet

Some Stuff

  • To enable syntax highlighting + numbering:
:syntax enable
:set bg=light          #Use set bg=dark if console background color is dark
:set number
  • Use Ctrl+[ instead of Esc. It has same effect (same keycode) but it's faster to type. It also works on AZERTY keyboard.
    • ... but so far not in AndLinux...