<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Vi on Amit Agarwal Linux Blog</title>
    <link>/tags/vi/</link>
    <description>Recent content in Vi on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Wed, 22 Jan 2014 01:15:40 +0000</lastBuildDate>
    
	<atom:link href="/tags/vi/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>vim mappings – easy way to do things.</title>
      <link>/2014/01/22/vim-mappings-easy-things/</link>
      <pubDate>Wed, 22 Jan 2014 01:15:40 +0000</pubDate>
      
      <guid>/2014/01/22/vim-mappings-easy-things/</guid>
      <description>&lt;p&gt;You can use vim mappings to make some of your editor tasks very simple. Here I am giving you just a example, but you could always let your imagination run wild.&lt;/p&gt;
&lt;p&gt;:nmap ,b Oj0c$**hP&lt;/p&gt;
&lt;p&gt;And what do we do here.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;O – Add a new line&lt;/p&gt;
&lt;p&gt;– Go to &lt;a class=&#34;zem_slink&#34; title=&#34;Normal mode&#34; href=&#34;http://en.wikipedia.org/wiki/Normal_mode&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;normal mode&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;j – go to newly added line&lt;/p&gt;
&lt;p&gt;0 – Go to begining of line&lt;/p&gt;
&lt;p&gt;c$ – Change till &lt;a class=&#34;zem_slink&#34; title=&#34;Newline&#34; href=&#34;http://en.wikipedia.org/wiki/Newline&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;end of line&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>vim – yank/xopy in different register to paste</title>
      <link>/2014/01/16/vim-yankxopy-register-paste/</link>
      <pubDate>Thu, 16 Jan 2014 01:21:17 +0000</pubDate>
      
      <guid>/2014/01/16/vim-yankxopy-register-paste/</guid>
      <description>&lt;p&gt;Very quick update, to use registers, you can select and then yank in a register to paste using the same register. This could be a convinient way to copy multiple selections and then paste which ever selection you want. Here is the simple way to do it:&lt;/p&gt;
&lt;p&gt;visuallly select with v/V&lt;/p&gt;
&lt;p&gt;then “qy to yank (here we are yanking into register q, so in the command you can use any of a-z to use as register)&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>bash – using the vi mode more effectively.</title>
      <link>/2013/11/22/bash-vi-mode-effectively/</link>
      <pubDate>Fri, 22 Nov 2013 01:50:24 +0000</pubDate>
      
      <guid>/2013/11/22/bash-vi-mode-effectively/</guid>
      <description>&lt;figure style=&#34;width: 240px&#34; class=&#34;wp-caption alignright&#34;&gt;&lt;a href=&#34;http://www.flickr.com/photos/36867590@N00/397369388&#34; target=&#34;_blank&#34;&gt;&lt;img class=&#34;zemanta-img-inserted zemanta-img-configured&#34; title=&#34;Vi blogging bundle&#34; alt=&#34;Vi blogging bundle&#34; src=&#34;https://i1.wp.com/farm1.static.flickr.com/160/397369388_6935e4572a_m.jpg?resize=240%2C180&#34; width=&#34;240&#34; height=&#34;180&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;figcaption class=&#34;wp-caption-text&#34;&gt;Vi blogging bundle (Photo credit: pedro mg)&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;You can first set the &lt;a class=&#34;zem_slink&#34; title=&#34;Bash (Unix shell)&#34; href=&#34;http://www.gnu.org/software/bash/&#34; target=&#34;_blank&#34; rel=&#34;homepage&#34;&gt;bash&lt;/a&gt; mode to &lt;a class=&#34;zem_slink&#34; title=&#34;Vi&#34; href=&#34;http://en.wikipedia.org/wiki/Vi&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;vi&lt;/a&gt;. This will enable some vim like features to bash. So, add this to .bashrc :&lt;/p&gt;
&lt;pre class=&#34;brush: actionscript3; gutter: true; first-line: 1&#34;&gt;set -o vi&lt;/pre&gt;
&lt;p&gt;Once, you have done that then its time to get more out of the vi mode. First, check some things and set some interesting stuff.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Check all vim colorschemes for minor issues</title>
      <link>/2013/10/10/check-vim-colorschemes-minor-issues/</link>
      <pubDate>Thu, 10 Oct 2013 01:13:25 +0000</pubDate>
      
      <guid>/2013/10/10/check-vim-colorschemes-minor-issues/</guid>
      <description>&lt;p&gt;Here is script that checks all the colorschemes in the &lt;a class=&#34;zem_slink&#34; title=&#34;Working directory&#34; href=&#34;http://en.wikipedia.org/wiki/Working_directory&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;current directory&lt;/a&gt; and corrects them if possible (&lt;a class=&#34;zem_slink&#34; title=&#34;Processing (programming language)&#34; href=&#34;http://www.processing.org&#34; target=&#34;_blank&#34; rel=&#34;homepage&#34;&gt;Processing&lt;/a&gt; of the file is done with simple commands like &lt;a class=&#34;zem_slink&#34; title=&#34;Sed&#34; href=&#34;http://en.wikipedia.org/wiki/Sed&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;sed&lt;/a&gt;, &lt;a class=&#34;zem_slink&#34; title=&#34;Grep&#34; href=&#34;http://en.wikipedia.org/wiki/Grep&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;grep&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Checks that the color_name is same as &lt;a class=&#34;zem_slink&#34; title=&#34;Filename&#34; href=&#34;http://en.wikipedia.org/wiki/Filename&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;Filename&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is the script:&lt;/p&gt;
&lt;pre class=&#34;brush: bash; gutter: true; first-line: 1&#34;&gt;#!/bin/bash -
#===============================================================================
#
#          FILE: check_colors.sh
#
#         USAGE: ./check_colors.sh
#
#   DESCRIPTION:
#
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR: Amit Agarwal (aka), 
#      REVISION:  ---
#===============================================================================
cd ~/.vim/colors
for i in *vim
do
    #echo &#34;Processing $i&#34;
    if [[ $(grep -c g:colors_name $i ) -eq 0 ]]; then
        if [[ $(grep -c colors_name $i ) -eq 0 ]]; then
            echo &#34;File $i does not have colorname&#34;;
            missing=$missing&#34; $i&#34;
        else
            sed -i.bak &#39;/colors_name/ s/.*/let g:colors_name=&#34;&#39;${i//.vim}&#39;&#34;/g&#39; $i
        fi
    else
        if [[ $(grep -c colors_name $i|grep let ) -gt 1 ]]; then
            echo &#34;WARN -----&amp;gt;&amp;gt; File $i has more than one colorsname&#34;
        fi
        colorname=$(grep g:colors_name $i|grep let| sed -e &#39;s/&#34;//g&#39; -e &#39;s/.*=//&#39; |tr -d &#39; &#39;)
        if [[ ${colorname}.vim != $i ]]; then
            echo &#34;Filename $i does not match colorname $colorname .. correcting &#34;
            sed -i.bak &#39;/colors_name/ s/.*/let g:colors_name=&#34;&#39;${i//.vim}&#39;&#34;/g&#39; $i
            #sed -i.bak &#39;s/(.*g:colors_name.*=)/1&#39;${i//.vim}&#39;/g&#39; $i
        fi
    fi
done

if [[ x$missing != x ]] ; then
    echo &#34;Missing colornames in $missing&#34;
fi&lt;/pre&gt;
&lt;h6 class=&#34;zemanta-related-title&#34; style=&#34;font-size: 1em;&#34;&gt;
  Related articles
&lt;/h6&gt;
&lt;ul class=&#34;zemanta-article-ul zemanta-article-ul-image&#34; style=&#34;margin: 0; padding: 0; overflow: hidden;&#34;&gt;
  &lt;li class=&#34;zemanta-article-ul-li-image zemanta-article-ul-li&#34; style=&#34;padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;&#34;&gt;
    &lt;a style=&#34;box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;&#34; href=&#34;http://java.dzone.com/articles/using-grep-inside-vim&#34; target=&#34;_blank&#34;&gt;&lt;img style=&#34;padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;&#34; alt=&#34;&#34; src=&#34;https://i0.wp.com/i.zemanta.com/204873595_80_80.jpg?w=688&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;a style=&#34;display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;&#34; href=&#34;http://java.dzone.com/articles/using-grep-inside-vim&#34; target=&#34;_blank&#34;&gt;Using Grep from Inside Vim&lt;/a&gt;
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li-image zemanta-article-ul-li&#34; style=&#34;padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;&#34;&gt;
    &lt;a style=&#34;box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;&#34; href=&#34;http://nathangrigg.net/vimhelp/&#34; target=&#34;_blank&#34;&gt;&lt;img style=&#34;padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;&#34; alt=&#34;&#34; src=&#34;https://i1.wp.com/i.zemanta.com/noimg_35_80_80.jpg?w=688&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;a style=&#34;display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;&#34; href=&#34;http://nathangrigg.net/vimhelp/&#34; target=&#34;_blank&#34;&gt;Vim&amp;#8217;s full help in PDF form&lt;/a&gt;
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li-image zemanta-article-ul-li&#34; style=&#34;padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;&#34;&gt;
    &lt;a style=&#34;box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;&#34; href=&#34;http://www.vim.org/scripts/script.php?script_id=4586&#34; target=&#34;_blank&#34;&gt;&lt;img style=&#34;padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;&#34; alt=&#34;&#34; src=&#34;https://i1.wp.com/i.zemanta.com/noimg_22_80_80.jpg?w=688&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;a style=&#34;display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;&#34; href=&#34;http://www.vim.org/scripts/script.php?script_id=4586&#34; target=&#34;_blank&#34;&gt;vim-colorscheme-switcher 0.2.5 &amp;#8212; Easily &amp; quickly switch between color schemes&lt;/a&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt; &lt;/p&gt;</description>
    </item>
    
    <item>
      <title>vim maps – simple commands to do stuff.</title>
      <link>/2013/08/28/vim-maps-simple-commands-stuff/</link>
      <pubDate>Wed, 28 Aug 2013 01:03:42 +0000</pubDate>
      
      <guid>/2013/08/28/vim-maps-simple-commands-stuff/</guid>
      <description>&lt;p&gt;Some time back, I was working on some script for logging and I wanted to change the class to function like this:&lt;/p&gt;
&lt;pre class=&#34;brush: shell; gutter: true; first-line: 1&#34;&gt;$logger-&amp;gt;Debug(&#34;Test string&#34;);
loggerFunc(&#34;Debug&#34;, &#34;Test String&#34;);&lt;/pre&gt;
&lt;p&gt;As you can see, this change could be quite frustrating if you have quite a few references. And thus vim comes to rescue.&lt;/p&gt;
&lt;p&gt;Simple map like ::&lt;/p&gt;
&lt;pre class=&#34;brush: actionscript3; gutter: true; first-line: 1&#34;&gt;:map ,mm :s/(.*)$logger-&amp;gt;(.*)((.*)).*/1loggerFunc(&#34;2&#34;,3);/&lt;/pre&gt;
&lt;p&gt;and then I can do “/$logger-&amp;gt;” and then “n” to go to next match. Just do “,mm” and the line is re-factored.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Vim – Why and where am I getting these errors from?</title>
      <link>/2013/05/15/vim-errors-from/</link>
      <pubDate>Wed, 15 May 2013 01:47:13 +0000</pubDate>
      
      <guid>/2013/05/15/vim-errors-from/</guid>
      <description>&lt;p&gt;If you have got this question in your mind, then you are in right place.&lt;/p&gt;
&lt;pre class=&#34;brush: bash; gutter: true; first-line: 1&#34;&gt;vim -V20  2&amp;gt;&amp;1 |tee&lt;/pre&gt;
&lt;p&gt;You can give the debugfile as any file, where you would want to log the debug messages. This will log a lot of information in the debugfile, you can open the file, once you have got the error in the main vim window. After this, you can open the debugfile and simply search for the error that you were getting. Just look for the reason why this error is originated in the debug logs and then it should be pretty simple to fix that.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>vim mappings for multiple files.</title>
      <link>/2012/08/06/vim-mappings-multiple-files/</link>
      <pubDate>Mon, 06 Aug 2012 06:34:23 +0000</pubDate>
      
      <guid>/2012/08/06/vim-mappings-multiple-files/</guid>
      <description>&lt;p&gt;If you open multiple &lt;a class=&#34;zem_slink&#34; title=&#34;Computer file&#34; href=&#34;http://en.wikipedia.org/wiki/Computer_file&#34; rel=&#34;wikipedia&#34; target=&#34;_blank&#34;&gt;files&lt;/a&gt; in vim with &lt;a class=&#34;zem_slink&#34; title=&#34;Command-line interface&#34; href=&#34;http://en.wikipedia.org/wiki/Command-line_interface&#34; rel=&#34;wikipedia&#34; target=&#34;_blank&#34;&gt;command line option&lt;/a&gt;. Then the only way to move between the files is &lt;strong&gt;“:n”&lt;/strong&gt; and &lt;strong&gt;“:N”&lt;/strong&gt;. There is a easier way to do this. Just add mappings for this in vimrc. Here is what you can use.&lt;/p&gt;
&lt;pre class=&#34;brush: shell; gutter: true; first-line: 1&#34;&gt;map  :N
map  :n&lt;/pre&gt;
&lt;p&gt;And if you want to make sure that you move to the prev or next file after saving the file, then you modifyt the mapping like this:&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>cream bash ide – vim with bash support</title>
      <link>/2012/03/14/cream-bash-ide-vim-bash-support/</link>
      <pubDate>Wed, 14 Mar 2012 06:16:48 +0000</pubDate>
      
      <guid>/2012/03/14/cream-bash-ide-vim-bash-support/</guid>
      <description>&lt;p&gt; &lt;/p&gt;
&lt;figure style=&#34;width: 300px&#34; class=&#34;wp-caption alignright&#34;&gt;&lt;a href=&#34;http://commons.wikipedia.org/wiki/File:Vim.png&#34; target=&#34;_blank&#34;&gt;&lt;img class=&#34;zemanta-img-inserted zemanta-img-configured&#34; title=&#34;English: Screenshot of graphical vim (gvim) sh...&#34; src=&#34;http://upload.wikimedia.org/wikipedia/commons/thumb/2/28/Vim.png/300px-Vim.png&#34; alt=&#34;English: Screenshot of graphical vim (gvim) sh...&#34; width=&#34;300&#34; height=&#34;312&#34; /&gt;&lt;/a&gt;&lt;figcaption class=&#34;wp-caption-text&#34;&gt;Image via Wikipedia&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;&lt;a href=&#34;http://sourceforge.net/projects/cream-bash-ide/&#34;&gt;Here&lt;/a&gt; you can find the cream editor. This is basically &lt;a class=&#34;zem_slink&#34; title=&#34;Vim (text editor)&#34; href=&#34;http://www.vim.org&#34; rel=&#34;homepage&#34; target=&#34;_blank&#34;&gt;vim editor&lt;/a&gt; with lots of customizations thus making it simpler for the users to use the editor directly.&lt;/p&gt;
&lt;p&gt;This version already has the bash and perl support &lt;a class=&#34;zem_slink&#34; title=&#34;Plug-in (computing)&#34; href=&#34;http://en.wikipedia.org/wiki/Plug-in_%28computing%29&#34; rel=&#34;wikipedia&#34; target=&#34;_blank&#34;&gt;plugins&lt;/a&gt; and thus you can start using them as &lt;a class=&#34;zem_slink&#34; title=&#34;Integrated development environment&#34; href=&#34;http://en.wikipedia.org/wiki/Integrated_development_environment&#34; rel=&#34;wikipedia&#34; target=&#34;_blank&#34;&gt;IDE&lt;/a&gt; without the need to add any plugins. It has a simple and advanced mode. In the simple mode you need not worry about all the modes of the vi/vim editor. How cool is that 🙂&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Get yourself som new themes for vim</title>
      <link>/2012/02/15/som-themes-vim/</link>
      <pubDate>Wed, 15 Feb 2012 06:18:53 +0000</pubDate>
      
      <guid>/2012/02/15/som-themes-vim/</guid>
      <description>&lt;p&gt;Well, you would already have some themes for your vim, by default. And if you did not like them then you would have added some of your own too (downloaded from &lt;a href=&#34;http://www.vim.org&#34; target=&#34;_blank&#34;&gt;vim.org&lt;/a&gt;). But, those are something, that you might not still like and want to make some changes.&lt;/p&gt;
&lt;p&gt;Here’s, a new way to do it. Just go to the link mentioned below and click on Generate Dark or Generate Light. You can generate as many as you like and once you like the theme, simply click on vim in the bottom and download 🙂 BTW, you can generate textmate and Emacs theme as well.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>g flag in :s useless in vim</title>
      <link>/2011/11/05/flag-s-useless-vim/</link>
      <pubDate>Sat, 05 Nov 2011 07:33:19 +0000</pubDate>
      
      <guid>/2011/11/05/flag-s-useless-vim/</guid>
      <description>&lt;p&gt;Some time back there was a post on vim_use list about the “/g” flag for the search and replace functionality of the vim. And the response of “Tim Chase” on the same was very elaborate and interesting. I always knew that “/g” is only for replacing multiple occurrences on the same line, but here are few things that I did not know.&lt;/p&gt;
&lt;pre class=&#34;brush: text; gutter: true; first-line: 1&#34;&gt;   :0/this/s//that&lt;/pre&gt;
&lt;p&gt;This one will only replace the first occurrence of this in the whole file.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>debug call function() to debug a function in vim</title>
      <link>/2011/09/04/debug-call-function-debug-function-vim/</link>
      <pubDate>Sun, 04 Sep 2011 06:04:53 +0000</pubDate>
      
      <guid>/2011/09/04/debug-call-function-debug-function-vim/</guid>
      <description>&lt;div class=&#34;zemanta-img&#34; style=&#34;margin: 1em; display: block;&#34;&gt;
  &lt;p&gt;
    &lt;figure style=&#34;width: 159px&#34; class=&#34;wp-caption alignright&#34;&gt;&lt;a href=&#34;http://commons.wikipedia.org/wiki/File:Function_machine2.svg&#34;&gt;&lt;img title=&#34;Drawn in Autosketch + pasting in words from Excel&#34; src=&#34;https://i1.wp.com/blog.amit-agarwal.co.in/wp-content/uploads/zemanta//159px-Function_machine2.svg_3.png?resize=159%2C152&#34; alt=&#34;Drawn in Autosketch + pasting in words from Excel&#34; width=&#34;159&#34; height=&#34;152&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;figcaption class=&#34;wp-caption-text&#34;&gt;Image via Wikipedia&lt;/figcaption&gt;&lt;/figure&gt;
  &lt;/p&gt;
&lt;/div&gt;
&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Have you ever wished that you could either see what is going on initially at the vim startup like you could do with C program in the gdm mode, but really did not want to go through &lt;a class=&#34;zem_slink&#34; title=&#34;GNU Debugger&#34; href=&#34;http://www.gnu.org/software/gdb&#34; rel=&#34;homepage&#34;&gt;gdb&lt;/a&gt;. Or rather you sometime felt that some &lt;a class=&#34;zem_slink&#34; title=&#34;Function (mathematics)&#34; href=&#34;http://en.wikipedia.org/wiki/Function_%28mathematics%29&#34; rel=&#34;wikipedia&#34;&gt;function&lt;/a&gt; defined by some plugin is causing some issue and you wanted to debug just that function. Well you need not wish anymore, the functionality is already there.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>vim autocomplete – automagically without tab.</title>
      <link>/2011/04/16/vim-autocomplete-automagically-without-tab/</link>
      <pubDate>Sat, 16 Apr 2011 01:10:59 +0000</pubDate>
      
      <guid>/2011/04/16/vim-autocomplete-automagically-without-tab/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Lets first do the setup in one line. Get my &lt;a title=&#34;vim script download&#39;er&#34; href=&#34;http://blog.amit-agarwal.co.in/2011/03/09/all-in-one-solution-for-all-the-scripts-of-vim-from-vim-org/&#34; target=&#34;_blank&#34;&gt;vim script downloader&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Use the script to add the script with script ID : :1879 (vim-autocomplpop) to your list of plugins for vim and you  are done.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;If you are using snipmate, then make sure that you read the description of the plugin to add the required lines to the vimrc file to get the full functionality. You would love to type henceforth in your favourite editor. We will talk about more on &lt;a class=&#34;zem_slink&#34; title=&#34;IntelliSense&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/IntelliSense&#34;&gt;Intellisense&lt;/a&gt; in few days time.. Chao till then.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>what is vim in 6Kb..</title>
      <link>/2011/03/16/what-is-vim-in-6kb/</link>
      <pubDate>Wed, 16 Mar 2011 16:36:33 +0000</pubDate>
      
      <guid>/2011/03/16/what-is-vim-in-6kb/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;If you thought that vim is very bloated and nothing abuot this editor can be small, then you are not alone. I was myself in the same bandwagon.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Well, I never thought that there could be anything about vim that can be explained in Kb’s, lest alone the complete vim features. But looks like &lt;a title=&#34;vim.org&#34; href=&#34;http://www.vim.org&#34; target=&#34;_blank&#34;&gt;vim.org&lt;/a&gt; had thought about this and thus came up with &lt;a title=&#34;this&#34; href=&#34;http://www.vim.org/6kbyte.php&#34; target=&#34;_blank&#34;&gt;this&lt;/a&gt;. And &lt;a title=&#34;here&#34; href=&#34;http://www.vim.org/6k/features.en.txt&#34; target=&#34;_blank&#34;&gt;here&lt;/a&gt; is the direct link to the vim in 6kb in English.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>[Solved] Abbreviations not working in vim</title>
      <link>/2010/10/02/solved-abbreviations-working-vim/</link>
      <pubDate>Sat, 02 Oct 2010 15:17:39 +0000</pubDate>
      
      <guid>/2010/10/02/solved-abbreviations-working-vim/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;To start with I &lt;a class=&#34;zem_slink&#34; title=&#34;Disability&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/Disability&#34;&gt;disabled&lt;/a&gt; all the plugin’s by moving my &lt;a class=&#34;zem_slink&#34; title=&#34;WordPress Plugin Directory&#34; rel=&#34;homepage&#34; href=&#34;http://wordpress.org/extend/plugins/&#34;&gt;plugin directory&lt;/a&gt;. This did not help me solve the issue, so the only other option left was to now disable the vimrc file completely. Once I removed the vimrc file, the abbreviations started working.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>when you press f9 &#39;paste&#39; is on , press f9 again and &#39;paste&#39; is off, and so forth (works in insert-mode and command-mode)</title>
      <link>/2010/08/02/when-you-press-f9-paste-is-on-press-f9-again-and-paste-is-off-and-so-forth-works-in-insert-mode-and-command-mode/</link>
      <pubDate>Mon, 02 Aug 2010 03:20:07 +0000</pubDate>
      
      <guid>/2010/08/02/when-you-press-f9-paste-is-on-press-f9-again-and-paste-is-off-and-so-forth-works-in-insert-mode-and-command-mode/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;&amp;lt;a class=&amp;quot;zem_slink&amp;quot; title=&amp;quot;Vim (text editor)&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://www.vim.org/&amp;quot;&amp;gt;vim&lt;/a&gt;&amp;amp;#8217;s pastetoggle: when you press f9 &amp;amp;#8217;paste&amp;amp;#8217; is on , press f9 again and &amp;amp;#8217;paste&amp;amp;#8217; is off, and so forth (works in &amp;lt;a class=&amp;quot;zem_slink&amp;quot; title=&amp;quot;Insert key&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Insert_key&amp;quot;&amp;gt;insert-mode&lt;/a&gt; and command-mode) $ nmap :set paste!:set paste? Sets as paste toggle, with visual confirmation of state&lt;/p&gt;
&lt;p&gt;* View this command to comment, vote or add to favourites * View all commands by Vilemirth&lt;/p&gt;
&lt;p&gt;commandlinefu.com&lt;/p&gt;
&lt;p&gt;by David Winterbottom (codeinthehole.com)&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>jumps and marks in vim</title>
      <link>/2010/07/11/jumps-and-marks-in-vim/</link>
      <pubDate>Sun, 11 Jul 2010 07:59:25 +0000</pubDate>
      
      <guid>/2010/07/11/jumps-and-marks-in-vim/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;First we will talk about jumps in vim. Very useful for &amp;lt;a class=&amp;quot;zem_slink freebase/en/navigation&amp;quot; title=&amp;quot;Navigation&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Navigation&amp;quot;&amp;gt;navigation&lt;/a&gt; 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&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A &amp;amp;#8221;jump&amp;amp;#8221; is one of the following commands: &amp;amp;#8221;&amp;amp;#8217;&amp;amp;#8221;, &amp;amp;#8221;`&amp;amp;#8221;, &amp;amp;#8221;G&amp;amp;#8221;, &amp;amp;#8221;/&amp;amp;#8221;, &amp;amp;#8221;?&amp;amp;#8221;, &amp;amp;#8221;n&amp;amp;#8221;,&lt;br&gt;
&amp;amp;#8221;N&amp;amp;#8221;, &amp;amp;#8221;%&amp;amp;#8221;, &amp;amp;#8221;(&amp;amp;#8221;, &amp;amp;#8221;)&amp;amp;#8221;, &amp;amp;#8221;[[&amp;amp;#8221;, &amp;amp;#8221;]]&amp;amp;#8221;, &amp;amp;#8221;{&amp;amp;#8221;, &amp;amp;#8221;}&amp;amp;#8221;, &amp;amp;#8221;:s&amp;amp;#8221;, &amp;amp;#8221;:tag&amp;amp;#8221;, &amp;amp;#8221;L&amp;amp;#8221;, &amp;amp;#8221;M&amp;amp;#8221;, &amp;amp;#8221;H&amp;amp;#8221; and&lt;br&gt;
the commands that start editing a new file.  If you make the &amp;lt;a class=&amp;quot;zem_slink freebase/en/cursor&amp;quot; title=&amp;quot;Cursor (computers)&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Cursor_%28computers%29&amp;quot;&amp;gt;cursor&lt;/a&gt; &amp;amp;#8221;jump&amp;amp;#8221;&lt;br&gt;
with one of these commands, the position of the cursor before the jump is&lt;br&gt;
remembered.  You can return to that position with the &amp;amp;#8221;&amp;amp;#8217;&amp;amp;#8217;&amp;amp;#8221; and &amp;amp;#8221;“&amp;amp;#8221; command,&lt;br&gt;
unless the line containing that position was changed or deleted.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>bash script to change the vim colorscheme from the list of locally available schemes</title>
      <link>/2010/06/25/bash-script-to-change-the-vim-colorscheme-from-the-list-of-locally-available-schemes/</link>
      <pubDate>Thu, 24 Jun 2010 20:51:35 +0000</pubDate>
      
      <guid>/2010/06/25/bash-script-to-change-the-vim-colorscheme-from-the-list-of-locally-available-schemes/</guid>
      <description>&lt;div class=\&#34;zemanta-img\&#34;&gt; 
&lt;div&gt;
  &lt;dl class=\&#34;wp-caption alignright\&#34;&gt; &lt;dt class=\&#34;wp-caption-dt\&#34;&gt;&lt;a href=\&#34;http://commons.wikipedia.org/wiki/Image:Vim_gloss_128.png\&#34;&gt;&lt;img title=\&#34;MacVim icon, glossy style\&#34; src=\&#34;http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/Vim_gloss_128.png\&#34; alt=\&#34;MacVim icon, glossy style\&#34; /&gt;&lt;/a&gt;&lt;/dt&gt; &lt;dd class=\&#34;wp-caption-dd zemanta-img-attribution\&#34;&gt;Image via &lt;a href=\&#34;http://commons.wikipedia.org/wiki/Image:Vim_gloss_128.png\&#34;&gt;Wikipedia&lt;/a&gt;&lt;/dd&gt; &lt;/dl&gt;
&lt;/div&gt;&lt;/div&gt; 
&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Today I was just wondering how good it would be to have a script to change the &amp;lt;a class=&amp;quot;zem_slink freebase/en/vim&amp;quot; title=&amp;quot;Vim (text editor)&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://www.vim.org/&amp;quot;&amp;gt;vim&lt;/a&gt; colorscheme from the &amp;lt;a class=&amp;quot;zem_slink freebase/en/cmd_exe&amp;quot; title=&amp;quot;Command Prompt&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Command_Prompt&amp;quot;&amp;gt;command prompt&lt;/a&gt;. The plan for the script was simply to print the list of available schemes and then let the user select the actions from there on. So, here is the result:&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>In (any) vi, add a keystroke to format the current paragraph.</title>
      <link>/2010/04/11/in-any-vi-add-a-keystroke-to-format-the-current-paragraph/</link>
      <pubDate>Sun, 11 Apr 2010 09:11:58 +0000</pubDate>
      
      <guid>/2010/04/11/in-any-vi-add-a-keystroke-to-format-the-current-paragraph/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;&amp;lt;a id=&amp;quot;aptureLink_F2g9MXMw3t&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Vi&amp;quot;&amp;gt;vi editor&lt;/a&gt; is very powerful in the sense that you can use maps, abbreviations and recordings. One such example is when you are trying to write a email or trying to write a paragraph and you want to format it. You can create a mapping like so, in your .exrc or .vimrc and use it to format the paragraph.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;tt&gt;map ^A !}fmt&lt;/tt&gt;&amp;lt;h6 class=&amp;quot;zemanta-related-title&amp;quot;&amp;gt;Related articles by Zemanta&lt;/h6&gt; &amp;lt;ul class=&amp;quot;zemanta-article-ul&amp;quot;&amp;gt; &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://www.slumpedoverkeyboarddead.com/2009/08/19/nano-text-editor-course/&amp;quot;&amp;gt;Nano Text Editor Course&lt;/a&gt; (slumpedoverkeyboarddead.com)&lt;/li&gt; &lt;/ul&gt; &amp;lt;div class=&amp;quot;zemanta-pixie&amp;quot;&amp;gt;&amp;lt;a class=&amp;quot;zemanta-pixie-a&amp;quot; title=&amp;quot;Reblog this post [with Zemanta]&amp;quot; href=&amp;quot;http://reblog.zemanta.com/zemified/af58b127-c811-4fc3-bce6-9f44fcdc03c3/&amp;quot;&amp;gt;&amp;lt;img class=&amp;quot;zemanta-pixie-img&amp;quot; src=&amp;quot;http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_b22.png&amp;quot; alt=&amp;quot;Reblog this post [with Zemanta]&amp;quot; /&amp;gt;&lt;/a&gt;&amp;lt;span class=&amp;quot;zem-script more-related more-info pretty-attribution paragraph-reblog&amp;quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>bash script to change vim colorscheme based on the available themes</title>
      <link>/2010/04/11/bash-script-change-vim-colorscheme-based-themes/</link>
      <pubDate>Sun, 11 Apr 2010 09:11:41 +0000</pubDate>
      
      <guid>/2010/04/11/bash-script-change-vim-colorscheme-based-themes/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;&lt;div class=\&#34;zemanta-img\&#34;&gt; 
&lt;div&gt;
  &lt;dl class=\&#34;wp-caption alignright\&#34;&gt; &lt;dt class=\&#34;wp-caption-dt\&#34;&gt;&lt;a href=\&#34;http://commons.wikipedia.org/wiki/Image:Vim_gloss_128.png\&#34;&gt;&lt;img title=\&#34;MacVim icon, glossy style\&#34; src=\&#34;http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/Vim_gloss_128.png\&#34; alt=\&#34;MacVim icon, glossy style\&#34; /&gt;&lt;/a&gt;&lt;/dt&gt; &lt;dd class=\&#34;wp-caption-dd zemanta-img-attribution\&#34;&gt;Image via &lt;a href=\&#34;http://commons.wikipedia.org/wiki/Image:Vim_gloss_128.png\&#34;&gt;Wikipedia&lt;/a&gt;&lt;/dd&gt; &lt;/dl&gt;
&lt;/div&gt;&lt;/div&gt; 
&lt;p&gt;Here&amp;amp;#8217;s one script that you may find useful. A little variation or wrapper for this script can make your life colorful 🙂&lt;/p&gt;
&lt;p&gt;You can write a wrapper to this to take one of the inputs randomly and then use it in alias to start &amp;lt;a class=&amp;quot;zem_slink freebase/en/vim&amp;quot; title=&amp;quot;Vim (text editor)&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://www.vim.org/&amp;quot;&amp;gt;vim&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>using paragraph seperator in vi – the easy way</title>
      <link>/2010/04/07/using-paragraph-seperator-in-vi-the-easy-way/</link>
      <pubDate>Wed, 07 Apr 2010 07:56:09 +0000</pubDate>
      
      <guid>/2010/04/07/using-paragraph-seperator-in-vi-the-easy-way/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;blockquote&gt;
&lt;p&gt;imap aa &lt;Esc&gt;80i-&lt;Esc&gt;i&lt;Esc&gt;o&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Just put this in the vimrc or in a vi session with a : in normal mode.&lt;/p&gt;
&lt;p&gt;Explanation:&lt;/p&gt;
&lt;p&gt;This will map the key &amp;amp;#8221;aa&amp;amp;#8221; to the sequence which will add &amp;amp;#8221;-&amp;amp;#8221; 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.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>vim scripts and tips</title>
      <link>/2010/03/29/vim-scripts-and-tips/</link>
      <pubDate>Mon, 29 Mar 2010 07:01:07 +0000</pubDate>
      
      <guid>/2010/03/29/vim-scripts-and-tips/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Here are few of the links for vim that you can use. It consists of the link to vimrc, colorscheme, syntaxcomplete and zzsplash.&lt;br&gt;
&amp;lt;a href=&amp;quot;http://vim.wikia.com/wiki/User:Tonymec/vimrc&amp;quot;&amp;gt;http://vim.wikia.com/wiki/User:Tonymec/vimrc&lt;/a&gt;&lt;br&gt;
&amp;lt;a href=&amp;quot;http://vim.wikia.com/wiki/User:Tonymec/almost-default.vim&amp;quot;&amp;gt;http://vim.wikia.com/wiki/User:Tonymec/almost-default.vim&lt;/a&gt;&lt;br&gt;
&amp;lt;a href=&amp;quot;http://vim.wikia.com/wiki/User:Tonymec/syntaxcomplete.vim&amp;quot;&amp;gt;http://vim.wikia.com/wiki/User:Tonymec/syntaxcomplete.vim&lt;/a&gt;&lt;br&gt;
&amp;lt;a href=&amp;quot;http://vim.wikia.com/wiki/User:Tonymec/zzsplash.vim&amp;quot;&amp;gt;http://vim.wikia.com/wiki/User:Tonymec/zzsplash.vim&lt;/a&gt;&amp;lt;table cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&amp;gt;&lt;/table&gt; &amp;lt;h6 class=&amp;quot;zemanta-related-title&amp;quot;&amp;gt;Related articles by Zemanta&lt;/h6&gt; &amp;lt;ul class=&amp;quot;zemanta-article-ul&amp;quot;&amp;gt; &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://blog.amit-agarwal.co.in/2010/02/02/bash-script-to-change-the-vim-colorscheme-from-the-list-of-locally-available-schemes/&amp;quot;&amp;gt;bash script to change the vim colorscheme from the list of locally available schemes&lt;/a&gt; (amit-agarwal.co.in)&lt;/li&gt; &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://www.prweb.com/releases/2010/03/prweb3740684.htm&amp;quot;&amp;gt;Wikia Introduces New Tools For People to Create Wiki Answer Sites on Any Topic&lt;/a&gt; (prweb.com)&lt;/li&gt; &lt;/ul&gt; &amp;lt;div class=&amp;quot;zemanta-pixie&amp;quot;&amp;gt;&amp;lt;a class=&amp;quot;zemanta-pixie-a&amp;quot; title=&amp;quot;Reblog this post [with Zemanta]&amp;quot; href=&amp;quot;http://reblog.zemanta.com/zemified/a04b9f08-df03-476c-b6d3-a1d32078cb64/&amp;quot;&amp;gt;&amp;lt;img class=&amp;quot;zemanta-pixie-img&amp;quot; src=&amp;quot;http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_b68.png&amp;quot; alt=&amp;quot;Reblog this post [with Zemanta]&amp;quot; /&amp;gt;&lt;/a&gt;&amp;lt;span class=&amp;quot;zem-script more-related more-info pretty-attribution paragraph-reblog&amp;quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>vim search multiple files</title>
      <link>/2010/03/25/vim-search-multiple-files/</link>
      <pubDate>Thu, 25 Mar 2010 02:41:28 +0000</pubDate>
      
      <guid>/2010/03/25/vim-search-multiple-files/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Searching some pattern in multiple files is something that is required very often. There are multiple ways to do it, like &amp;lt;a class=&amp;quot;zem_slink freebase/en/grep&amp;quot; title=&amp;quot;Grep&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Grep&amp;quot;&amp;gt;grep&lt;/a&gt;, &amp;lt;a class=&amp;quot;zem_slink freebase/guid/9202a8c04000641f8000000006b66ec6&amp;quot; title=&amp;quot;Ack (command-line utility)&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Ack_%28command-line_utility%29&amp;quot;&amp;gt;ack&lt;/a&gt;, find and so on so forth. But if your editor already has the capability to do that, then why leave your favourite vi and go to shell. I will point you to some scripts and some wiki pages on how to do this 🙂&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>eclim for Fedora – Leonidas – installation.</title>
      <link>/2010/03/08/eclim-for-fedora-leonidas-installation/</link>
      <pubDate>Mon, 08 Mar 2010 03:48:31 +0000</pubDate>
      
      <guid>/2010/03/08/eclim-for-fedora-leonidas-installation/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Here is the installation instruction for Eclim for vim. I have not tried it as I did not require it, but if you need it.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://downloads.sourceforge.net/project/eclim/eclim/1.4.8/eclim&#34;&gt;http://downloads.sourceforge.net/project/eclim/eclim/1.4.8/eclim&lt;/a&gt;_1.4.8.tar.gz?use_mirror=biznetnetworks&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;sudo ant -Declipse.home=/usr/lib/eclipse -Dvim.files=/home/amitag/.vim -Dplugins=cdt&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;create ctgs using&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;ctags -R /usr/include/&amp;lt;h6 class=&amp;quot;zemanta-related-title&amp;quot;&amp;gt;Related articles by Zemanta&lt;/h6&gt; &amp;lt;ul class=&amp;quot;zemanta-article-ul&amp;quot;&amp;gt; &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://spf13.com/post/vim-crash-course&amp;quot;&amp;gt;VIM Crash Course&lt;/a&gt; (spf13.com)&lt;/li&gt; &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://go.theregister.com/feed/www.theregister.co.uk/2010/01/26/sourceforge_ip_address_filtering/&amp;quot;&amp;gt;SourceForge bars 5 nations from open source downloads&lt;/a&gt; (go.theregister.com)&lt;/li&gt; &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://blog.amit-agarwal.co.in/2010/01/22/my-project-in-sourceforgenet-gnomedesktopwal/&amp;quot;&amp;gt;My project in sourceforge.net gnomedesktopwal&lt;/a&gt; (amit-agarwal.co.in)&lt;/li&gt; &lt;/ul&gt; &amp;lt;div class=&amp;quot;zemanta-pixie&amp;quot;&amp;gt;&amp;lt;a class=&amp;quot;zemanta-pixie-a&amp;quot; title=&amp;quot;Reblog this post [with Zemanta]&amp;quot; href=&amp;quot;http://reblog.zemanta.com/zemified/0fb78d60-4b1a-4563-8ffa-f572041a3a64/&amp;quot;&amp;gt;&amp;lt;img class=&amp;quot;zemanta-pixie-img&amp;quot; src=&amp;quot;http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_b13.png&amp;quot; alt=&amp;quot;Reblog this post [with Zemanta]&amp;quot; /&amp;gt;&lt;/a&gt;&amp;lt;span class=&amp;quot;zem-script more-related more-info pretty-attribution paragraph-reblog&amp;quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Built-in lists in vim</title>
      <link>/2010/02/03/built-in-lists-in-vim/</link>
      <pubDate>Wed, 03 Feb 2010 16:49:32 +0000</pubDate>
      
      <guid>/2010/02/03/built-in-lists-in-vim/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;&amp;lt;a class=&amp;quot;zem_slink freebase/en/vimscript&amp;quot; title=&amp;quot;Vimscript&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Vimscript&amp;quot;&amp;gt;Vimscript&lt;/a&gt; provides excellent support for operating on collections of &amp;lt;a class=&amp;quot;zem_slink freebase/en/data&amp;quot; title=&amp;quot;Data&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Data&amp;quot;&amp;gt;data&lt;/a&gt;, a cornerstone of programming. In this third article in the series, learn how to use Vimscript&amp;amp;#8217;s built-in lists to ease everyday operations such as reformatting lists, filtering sequences of filenames, and sorting sets of line numbers. You&amp;amp;#8217;ll also walk through examples that demonstrate the power of lists to extend and enhance two common uses of &amp;lt;a class=&amp;quot;zem_slink freebase/en/vim&amp;quot; title=&amp;quot;Vim (text editor)&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://www.vim.org/&amp;quot;&amp;gt;Vim&lt;/a&gt;: creating a &amp;lt;a class=&amp;quot;zem_slink freebase/en/user_defined_function&amp;quot; title=&amp;quot;User-defined function&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/User-defined_function&amp;quot;&amp;gt;user-defined function&lt;/a&gt; to align assignment operators, and improving the built-in text completions mechanism.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Know when you will type :q in your term instead of vi(m), the alias will chewed you out.</title>
      <link>/2009/12/20/know-when-you-will-type-q-in-your-term-instead-of-vim-the-alias-will-chewed-you-out/</link>
      <pubDate>Sun, 20 Dec 2009 07:53:47 +0000</pubDate>
      
      <guid>/2009/12/20/know-when-you-will-type-q-in-your-term-instead-of-vim-the-alias-will-chewed-you-out/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;most simple solution is to alias :q like so:&lt;br&gt;
alias :q=`echo &amp;amp;#8221;This is not vim&amp;amp;#8221;`&lt;/p&gt;
&lt;p&gt;but as someone suggested in commandlinefu, you can use tput to put some color and fun into this.&lt;br&gt;
alias :q=&amp;amp;#8217;tput setaf 1; echo &amp;gt;&amp;amp;2 &amp;amp;#8221;this is NOT vi(m) :/&amp;amp;#8221;; tput sgr0&amp;amp;#8217;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Multiple search in vim</title>
      <link>/2009/11/19/multiple-search-in-vim/</link>
      <pubDate>Thu, 19 Nov 2009 02:02:19 +0000</pubDate>
      
      <guid>/2009/11/19/multiple-search-in-vim/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;I was looking at a log file and needed to highlight multiple search items to make the logs more readable. I got into multiple threads suggesting various cryptic vim commands but I was in no mood to remember them. So, I finally hit &amp;lt;a href=&amp;quot;http://www.vim.org/scripts/script.php?script_id=479&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This is a cool vim script which you can use to highlight multiple search patter. You can simply add a search term by doing&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Vi/VIM and Unix/Linux cheatsheets.</title>
      <link>/2009/10/26/vivim-and-unixlinux-cheatsheets/</link>
      <pubDate>Mon, 26 Oct 2009 06:59:25 +0000</pubDate>
      
      <guid>/2009/10/26/vivim-and-unixlinux-cheatsheets/</guid>
      <description>&lt;p&gt;I found quite a lot of good information today morning.&lt;/p&gt;
&lt;p&gt;Some really good info on vi/vim. I liked the this one:&amp;amp;#8221;&lt;strong&gt;Also, you don&amp;amp;#8217;t have to use the / command as a separator. Anything typed after s will become the separator&lt;/strong&gt;&amp;amp;#8221;&lt;/p&gt;
&lt;p&gt;&amp;lt;a href=&amp;quot;http://ask.slashdot.org/article.pl?sid=08/11/06/206213&amp;amp;from=rss&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;http://ask.slashdot.org/article.pl?sid=08/11/06/206213&amp;amp;from=rss&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Some of the best collection of vi/vim tips: (though a lot of them do not have explanations)&lt;/p&gt;
&lt;p&gt;&amp;lt;a href=&amp;quot;http://vim.wikia.com/wiki/Best_Vim_Tips&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;http://vim.wikia.com/wiki/Best_Vim_Tips&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Top 10 Best Cheat Sheets and Tutorials for Linux / UNIX Commands&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
