Archive for February, 2015

Python: Tips, Tricks and Idioms – Part 2

February 20, 2015 Leave a comment

Python Tips, Tricks and Idoms – Part 2

Categories: Interesting, python

Turning off beep/ bell on vi

February 12, 2015 Leave a comment

I was using vi and it kept on beeping at all my mistakes :-p

Added the following line to my .vimrc

set visualbell


Categories: vim Tags:

Free python tips

February 5, 2015 Leave a comment
Categories: python

vim modelines

February 4, 2015 Leave a comment


I noted that my collegues did not like having line numbering on when editing their files. So instead of setting it globally in the .vimrc file I opted for modelines as this feature was not disabled.


Placing this at the start of end of a file

# vim: nu ts=4 sw=4 expandtab

Unfortunately, I could not change the colorscheme using the same method 😦


Categories: vim