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

  • ZOMG Security Onion: An über-powerful NSM Linux distro. Yeah, installing now. | http://t.co/pohKMY3b #infosec
  • Source2URL -- Create a URL list from a source code directory | http://t.co/E0qD0qt6 #websec #infosec
  • "If you only care about your job during work hours then you work part time." ~ Mark Dudlik
  • Terror Defense Based on Resilience Rather than Avoidance | http://t.co/puB3NRjp #security #natsec
  • I so love Vimium. Control Chrome with vim commands | http://t.co/CZrwaYsz #chrome #vim
  • The Bay Area has taxes like Stockholm and roads like Port Au Prince.

What I'm Reading

Favorite Books and Essays

Top Blog Categories

Inputs