DISQUS

DISQUS Hello! dmiessler.com | grep understanding is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

dmiessler.com | grep understanding

dmiessler.com/about/
Jump to original thread »
Author

7 Relatively Unknown But Very Powerful Vim Features

Started by Daniel Miessler · 7 months ago

I’m a bit obsessed with mastering vim. I kind of feel like I’m killing kittens every time I do something inefficiently. I know plenty of commands, but you don’t truly know a command (like in the Biblical sense) until you find yourself using it without thinki ... Continue reading »

1 comment

  • 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

Add New Comment

Returning? Login