I am running ubuntu 12.04.5 lts. When I do a mouse double click selection I would like to select only a current word. For example in a line like:
right now the whole line gets selected when I doulble click on "xx". Also in a line like:
I would like to select the 1st five characters - include
$ in the selection. Right now it selects
asdf= - 5 characters including the equal sign.
UPDATE: The answer I accepted no longer works since Ubuntu 15 it seems. The following answer works in Ubuntu18: