TheBlackzone Logo

Posts tagged with "vim"

New VIM colorschemes

Vim Icon Recently I created two new colorschemes for the VIM text editor. My main motivation was to have a light, readable colorscheme I could use for my coding sessions outside on the patio during the summer days and to have a similar dark one for use at night.

Read on...

Remap CAPS LOCK key to become ESCAPE in Ubuntu

This is just a quick tip on how to remap your CAPS LOCK key to ESCAPE. I use this setting for my Vim sessions in order to have comfortable access to ESCAPE while my fingers rest on the keyboard's home row.

There are several ways to remap keys in a desktop session. I use the command setxkbmap for this purpose (see man setxkbmap for more information).

The command

setxkbmap -option caps:escape

makes your CAPS LOCK key function as ESCAPE key. To turn the mapping off again just issue the command

setxkbmap -option

And in order to make the mapping permanent, run it as a session startup command which can be configured as follows:

If you use Vim a lot you will rapidly get used to this very comfortable setup.

Show nonprinting characters in Vim

Vim Logo When editing tabular data or regular text, it is often quite handy to have a visual representation of nonprinting characters like EOL or TAB. To achieve this, Vim provides us with the listchars option, a feature that has gone unnoticed by me for a long time...

Read on...