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

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

In (any) vi, add a keystroke to format the current paragraph.

2010-04-11 1 min read Linux
<a id="aptureLink_F2g9MXMw3t" href="http://en.wikipedia.org/wiki/Vi">vi editor 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. map ^A !}fmt<h6 class="zemanta-related-title">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://www. Continue reading

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 &#8221;aa&#8221; to the sequence which will add &#8221;-&#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.

vim scripts and tips

2010-03-29 1 min read Linux Vim Tips
Here are few of the links for vim that you can use. It consists of the link to vimrc, colorscheme, syntaxcomplete and zzsplash. <a href="http://vim.wikia.com/wiki/User:Tonymec/vimrc">http://vim.wikia.com/wiki/User:Tonymec/vimrc <a href="http://vim.wikia.com/wiki/User:Tonymec/almost-default.vim">http://vim.wikia.com/wiki/User:Tonymec/almost-default.vim <a href="http://vim.wikia.com/wiki/User:Tonymec/syntaxcomplete.vim">http://vim.wikia.com/wiki/User:Tonymec/syntaxcomplete.vim <a href="http://vim.wikia.com/wiki/User:Tonymec/zzsplash.vim">http://vim.wikia.com/wiki/User:Tonymec/zzsplash.vim<table cellspacing="0" cellpadding="0" width="100%"> <h6 class="zemanta-related-title">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://blog.amit-agarwal.co.in/2010/02/02/bash-script-to-change-the-vim-colorscheme-from-the-list-of-locally-available-schemes/">bash script to change the vim colorscheme from the list of locally available schemes (amit-agarwal.co.in) <li class="zemanta-article-ul-li"><a href="http://www.prweb.com/releases/2010/03/prweb3740684.htm">Wikia Introduces New Tools For People to Create Wiki Answer Sites on Any Topic (prweb. Continue reading
Older posts Newer posts