7 Relatively Unknown But Very Powerful Vim Features

By Daniel Miessler on January 14th, 2007: Tagged as Linux | Programming | Vim
  • Pingback: Some practical Vim tips.

  • http://slashback.org/ Tim

    better text for #7 here:

    if has(“syntax) syntax on endif

    Keeps you from getting a warning if your copy of vim doesn’t have syntax highlighting turned on.

    I also like to set my tabstop/shiftwidth to 4 (because 8 gets really messy when you nest enough if statements). Also, if you set one and not the other, I’ve found that some freaky stuff happens:

    set tabstop=4 set shiftwidth=4

  • http://slashback.org Tim

    better text for #7 here:

    if has(“syntax) syntax on endif

    Keeps you from getting a warning if your copy of vim doesn’t have syntax highlighting turned on.

    I also like to set my tabstop/shiftwidth to 4 (because 8 gets really messy when you nest enough if statements). Also, if you set one and not the other, I’ve found that some freaky stuff happens:

    set tabstop=4 set shiftwidth=4

  • Pingback: Live from Yokohama » Blog Archive » links for 2007-01-16


Top

Popular

Information Security / Technology

Politics

Philosophy & Religion

Technology & Science

Culture & Society

Miscellaneous

Arguments

Projects

Collections

Twitter

  • An Über List of User-agent Strings | http://t.co/PLrwU9vj #websec #infosec
  • Coffee. Scone. Way too much work due soon. Life is wonderful.
  • "My first wife died of mushroom poisoning. My second wife died of a concussion. She wouldn't eat her mushrooms."
  • Source2URL: Parse Source Code Directory, Send URLs Through Proxy | http://t.co/Se7cWxNP #websec #infosec
  • The 5 Why's Method of Discovering Root Causes | Harvard Business Review http://t.co/mGcbdL0L #productivity
  • A List of Source Code Analyzers | http://t.co/67YbEDJo #nist #appsec

What I'm Reading

Favorite Books and Essays

Top Blog Categories

Inputs