Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Saturday, August 11, 2012

How to set up keyboard layout changing in xfce

One may change keyboard layout in xcfe with the following command:

setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,de,it

Moreover most users may want to do it only once on login. For this reason the command has to be saved in whether ~/.profile or ~/.bash_profile or ~/.bash_login if one of the two latter files exist. 

Thursday, August 9, 2012

How to enable vim syntax highlighting in Ubuntu 12.04

There are much information on the internet, about how to enable syntax highlighting in Ubuntu.
Some of them advice using the command :syntax=on, another saying about installing vim-full.
These advises are valid for earlier versions of Ubuntu, but not for the 12.04.
So in order to enable syntax highlighting one has to install vim-gnome and it will be enabled automatically:
sudo apt-get install vim-gnome