Archive for April, 2015

Vim – Using undo branches

April 16, 2015 Leave a comment

This is a pretty neat feature that I did not know existed. I have only used u, U and CTRL-R, but a situation arose where multiple undo’s and redo’s was necessary.

:h undolist has clear documentation on how it works.
g+ Go to newer text state. With a count repeat that many times. {not in Vi} See :help g+ for more.
g- Go to older text state. With a count repeat that many times. {not in Vi} See :help g- for more.

For more, see below:

Less – Adding line numbers

April 2, 2015 Leave a comment


My initial problem was how to view line numbers when using less. As I looked into this I discovered more and more ways of using less that I did not know.


1. less -N file.txt

If you have already viewed the file then typing

-N will enable line numbers while
-n will disable line numbers.

2. To go a specifice line
g N to move upwards to a particular line. The default is 1 (ie g1) and it gets you to the first line of the file.
G N to move forward to a particular line. G alone is the default that gets you to the end of the file.

Categories: bash

Duolingo – Free language learning platform

April 2, 2015 Leave a comment

Have a look at if you are interested in learning a new language.


Duolingo /ˈdjuːɵˌlɪŋɡoʊ/ is a free language-learning and crowdsourced text translation platform. The service is designed so that, as users progress through the lessons, they simultaneously help to translate websites and other documents.[1][2] As of 23 March 2015, Duolingo provides Latin American Spanish, French, German, Brazilian Portuguese, Italian, Dutch, Irish, Danish, Swedish and Turkish courses for English speakers, as well as American English for Spanish, French, German, Portuguese, Italian, Greek, Dutch, Russian, Polish, Turkish, Hungarian, Romanian, Japanese, Hindi, Indonesian, Korean, Vietnamese, and Czech speakers.