using paragraph seperator in vi – the easy way

2010-04-07 1 min read Vim Tips

imap aa 80i-io

Just put this in the vimrc or in a vi session with a : in normal mode.

Explanation:

This will map the key ”aa” to the sequence which will add ”-” 80 times in the current line and then go to new line in insert mode. This is quite simple so any changes required should be simple enough to make.

l-exp listrs – A new look at linux blogs and sites

2010-04-07 0 min read Uncategorized
\"View\"\"More\"Tags\"\"Comments\"\"Share\"\"Send\"\"Favorite\"\"Twitter\"\"Facebook\"

<a href="http://www.flickr.com/photos/73645804@N00/466188059"><img id="kwiclick-temp-0" title="gigantic apple final cut studio software sign …" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/466188059_ca5f73a0a9_m.jpg" alt="gigantic apple final cut studio software sign …" />

<dd class="wp-caption-dd zemanta-img-attribution">Image by <a href="http://www.flickr.com/photos/73645804@N00/466188059">woodleywonderworks via Flickr

Continue reading

vim understanding the various modes and using the yanking more efficiently.

2010-04-06 0 min read Linux Vim Tips
\"MacVim
Image via Wikipedia

We will look at the vim modes today. Sometime back , I was looking at copying a function body. So I was basically looking to copy the lines till matching &#8221;}&#8221;. I found a plugin called <a href="http://www.vim.org/scripts/script.php?script_id=1234" target="_blank">yankring which would allow me to yank the text in various combinations. So I can copy a function by going to the begining of the function and then &#8221;y}&#8221;. That is very simple to understand right? Wrong!!!

Continue reading

Extend Gedit with amazing plugins

2010-04-05 1 min read Linux

<a href="http://www.linuxforums.org/applications/extend_gedit_with_amazing_plugins.html" target="_blank">http://www.linuxforums.org/applications/extend_gedit_with_amazing_plugins.html

Been busy in writing one script these days. So here&#8217;s something for you to munch in the meanwhile.

Change background in gnome from shell script.

2010-04-05 1 min read GNOME

I learnt this just now but this is something I wanted to try for some time. I wanted to know a way to change the background from the shell without actually using the change background GUI option. I always find that option very slow.

So what do you do.. write a shell script

gconftool-2 type string -s /desktop/gnome/background/picture_filename &#8221;`pwd`/$1&#8221;

Use this script to change the desktop. Some other time we will delve into why this works. For now you can just run this shell script with the filename and see your Desktop background change. Cool 🙂

Continue reading

Create your own splash screen for gimp

2010-04-05 0 min read Fedora Photo
\"Category:Created
Image via Wikipedia

Gimp allows you to set the <a class="zem_slink freebase/en/splash_screen" title="Splash screen" rel="wikipedia" href="http://en.wikipedia.org/wiki/Splash_screen">splash screen very easily. All you need to do is copy the image to ~/.gimp-/splashes/. There is <a class="zem_slink freebase/en/betting" title="Betting (poker)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Betting_%28poker%29">no limit on the size or color. You just copy all the images you like to have as splash and one of them would be randomly picked up from the said direcotory for the splash image.

Continue reading
Older posts Newer posts