Posts Tagged ‘tabs’

There are many ways in the linux terminal to print the nth word of a given file or output. One way to do this without worrying about tabs, extra spaces or word length is to use awk. With awk, this can be done on one line by using the {print $<n>} syntax. For example, the […]

Lilypond can be used to create music, as I described in the post adding-music-notation-to-latex-with-lilypond. This is fine for piano, but what if you want to add guitar tabs? Simple – just add a TabStaff to the score. Lilypond will figure out the fingering for you. For example: song = {     e4 d c d e […]

Vim, by default, will insert a tab character when you press the <tab> key. Some people prefer to use spaces instead, and the number of spaces preferred varies from person to person. To use spaces instead of tabs, you need to set tabstop, shiftwidth and expandtab in your .vimrc file. If, for example, you wanted […]

Highlighting tabs in Vim

Posted: 26th April 2012 by Tim in Vim
Tags: , , , , , , , ,

Some people like to indent code with tabs, and others like to indent with spaces. There are advantages and disadvantages to both. Regardless of which you prefer, it can be useful to see which indent style has been used. In Vim, you can do this by adding the following line to you .vimrc file (which […]