In Ubuntu 14.04, gnome-terminal have a paramter "Select-by-word characters" to configure what characters can be selected as a word. But it has been removed from the UI menu profile.
commit e63cbcf64d2fde5bc4a8cb8ae0e3ef8c95a6d889
Author: Debarshi Ray <debarshir@gnome.org>
Date: Mon Apr 7 15:31:11 2014 +0200
profile: editor: Remove the word-chars setting
https://bugzilla.gnome.org/show_bug.cgi?id=724110
In newer gnome-terminal source code, I found a new paratmer word-char-exceptions to replace the old one.
word-char-exceptions: summary>List of ASCII punctuation characters that are not to be treated as part of a word when doing word-wise selection.
We configure this paramter by dconf edior which replaced gconf editor.