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

  • SSD back in MBP. Happy again. RPMs only belong in cars.
  • Reminder: If you don't know SQL Injection it's because you don't know SQL. Once you understand the technology the security is obvious.
  • @simonsarris Can't tell if you're agreeing with me or not.
  • Is Trojan really a good name for a condom company? The original was let in trustingly, released its dangerous payload, and chaos ensued.
  • Eclipse is so boss right now from SF. Watching live on Ustream from Reno as well.

What I'm Reading

Favorite Books and Essays

Top Blog Categories

Inputs