History
Article Edit this page Discussion

Main Page

From Vim Tips Wiki

Jump to: navigation, search

Welcome to the Vim Tips wiki

This wiki is about the editor Vim. We aim to exchange tips and tricks with other Vim users. Please help by improving or adding comments to any tip.

We are currently editing over 1,653 articles.

Featured tip for October view archive

Programmers, and other careful editors, often work hard to maintain consistent use of whitespace characters (space and tab). Perhaps you want to avoid using spaces before tabs or at the end of a line. Or, you may want to see where tabs occur, or see only the tabs that are not used for indenting.

Good news! There are several ways to highlight unwanted whitespace. Try a simple search, or match or syntax highlighting. There's also the 'list' option, and your filetype may support showing syntax space errors.

See Featured Tips for more, or to nominate a featured tip.

Did you know? view archive

From Vim Help view archive

  • Use :match ErrorMsg /sample/ to highlight every "sample". :help :match
  • Or do the same with :call matchadd('ErrorMsg', 'sample') then :call clearmatches(). :help matchadd()
  • Use :hi ErrorMsg to see the ErrorMsg highlight definition. :help :highlight

Information

  • Search the tips

  • Access tips by tip id, for example tip 1 is VimTip1


Rate this article:

Share this article:

Hubs Highlights International Sites Wikia messages
Entertainment
Gaming
Cartoons & Comics
Science Fiction
Hobbies
Sports
See all...
Grand Theft Auto Wiki
Doctor Who
Legend of Zelda Wiki
Terminator Wiki
Everquest II Wiki
Mystery Science Theater 3000
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions
Send this article to a friend
"Main Page"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation