Archive

Archive for February, 2015

Python: Tips, Tricks and Idioms – Part 2

February 20, 2015 Leave a comment

Python Tips, Tricks and Idoms – Part 2

Advertisements
Categories: Interesting, python

Turning off beep/ bell on vi

February 12, 2015 Leave a comment

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

Solution:
Added the following line to my .vimrc

set visualbell

Source:
http://linuxconfig.org/turn-off-beep-bell-on-linux-terminal

Categories: vim Tags:

Free python tips

February 5, 2015 Leave a comment
Categories: python

vim modelines

February 4, 2015 Leave a comment

Problem:

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.

Solution:

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 😦

Source:
http://vim.wikia.com/wiki/Modeline_magic

Categories: vim