7 Relatively Unknown But Very Powerful Vim Features

By Daniel Miessler on January 14th, 2007: Tagged as Linux | Programming | Vim

Viewing 1 Comment

    • ^
    • v
    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
 

Trackbacks

(Trackback URL)

close Reblog this comment
blog comments powered by Disqus

    Discovered Content


    About dmiessler.com

    This site is an avatar for my own self-assigned life purpose--an attempt to model the world in the most accurate way possible, and to do so without bias or fear of unpleasant truth. I desire to develop, articulate, and perpetually improve models of how things work, and then to use that understanding to increase happiness and reduce suffering. I seek those on similar paths and thrive on sharing an appreciation of the interesting and beautiful with others.



    Blog
    Study
    Writing
    Infosec
    Technology
    Politics

    Top Original Content


    Security & Technology

    Philosophy & Science

    Culture & Society

    Blog Archives