shopt causes bash completion to stop working.

2011-01-25 1 min read bash
Couple of days, I added some scripts to my bash startup and suddenly realized that bash completions stopped working. This is tricky situation in bash to figure out what went wrong. So, I set my foot down to make sure that I find out the culprit. Thus I started with method of elimination. So, I started with nothing in .bashrc and kept adding my stuff in batches, until the said feature was broken. Continue reading

[Solved] Abbreviations not working in vim

2010-10-02 1 min read bash Learning Vim Tips
Today I found that abbreviations are not working in vim in my current login. I searched log of blog’s and sill did not find any solution so I decided to take the matters in my hand. To start with I disabled all the plugin’s by moving my plugin directory. This did not help me solve the issue, so the only other option left was to now disable the vimrc file completely. Continue reading

when you press f9 'paste' is on , press f9 again and 'paste' is off, and so forth (works in insert-mode and command-mode)

2010-08-02 1 min read bash Linux
<a class="zem_slink" title="Vim (text editor)" rel="homepage" href="http://www.vim.org/">vim&#8217;s pastetoggle: when you press f9 &#8217;paste&#8217; is on , press f9 again and &#8217;paste&#8217; is off, and so forth (works in <a class="zem_slink" title="Insert key" rel="wikipedia" href="http://en.wikipedia.org/wiki/Insert_key">insert-mode and command-mode) $ nmap :set paste!:set paste? Sets as paste toggle, with visual confirmation of state * View this command to comment, vote or add to favourites * View all commands by Vilemirth commandlinefu.com by David Winterbottom (codeinthehole. Continue reading

Play with vim colors.

2010-07-16 1 min read Vim Tips
In vim you can customize the colors of your terminal vim or the GUI version. If you wanted to play around with colors then you can simply put the file containing the colorscheme to directory &#8221;~/.vim/colors&#8221; and load it in vim with &#8221;colorscheme &#8221;. That most of you would know. What I will add here is how easy it can be create it if you knew the right place to do it: Head over<a href="http://yukihiro. Continue reading

jumps and marks in vim

2010-07-11 3 min read Linux Vim Tips
First we will talk about jumps in vim. Very useful for <a class="zem_slink freebase/en/navigation" title="Navigation" rel="wikipedia" href="http://en.wikipedia.org/wiki/Navigation">navigation and jumping around the vim. The jumps are commands that lets you jump from one location to another location, like {{ or [[ and so on … From the help file of vim A &#8221;jump&#8221; is one of the following commands: &#8221;&#8217;&#8221;, &#8221;`&#8221;, &#8221;G&#8221;, &#8221;/&#8221;, &#8221;?&#8221;, &#8221;n&#8221;, &#8221;N&#8221;, &#8221;%&#8221;, &#8221;(&#8221;, &#8221;)&#8221;, &#8221;[[&#8221;, &#8221;]]&#8221;, &#8221;{&#8221;, &#8221;}&#8221;, &#8221;:s&#8221;, &#8221;:tag&#8221;, &#8221;L&#8221;, &#8221;M&#8221;, &#8221;H&#8221; and Continue reading

vi tips with examples for programmers — very useful

2010-06-05 1 min read Vim Tips
First off, sorry for not posting regularly. Will be so for probably another couple of days. In the meantime found a very nice artcle on vim: <a href="http://en.wikibooks.org/wiki/Learning_the_vi_editor/Vim/Useful_things_for_programmers_to_know" target="_blank">http://en.wikibooks.org/wiki/Learning_the_vi_editor/Vim/Useful_things_for_programmers_to_know
Older posts Newer posts