<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vi blog</title>
	<atom:link href="http://dudarev.com/viblog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://dudarev.com/viblog</link>
	<description></description>
	<lastBuildDate>Mon, 18 Aug 2008 20:28:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Replacing ^M</title>
		<link>http://dudarev.com/viblog/?p=16</link>
		<comments>http://dudarev.com/viblog/?p=16#comments</comments>
		<pubDate>Tue, 10 Jul 2007 10:22:22 +0000</pubDate>
		<dc:creator>Artem</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[replace]]></category>

		<guid isPermaLink="false">http://dudarev.com/viblog/?p=16</guid>
		<description><![CDATA[Frequently I have to replace ^M in UNIX style files. I usually Google &#8220;vim newline replace&#8221;. And come to this post on the vim website. It is also now available on wikia. Vim wikia is an example of very good wiki style collaboration. The command I am using to replace ^M: :%s/\r//g]]></description>
			<content:encoded><![CDATA[<p>Frequently I have to replace ^M in UNIX style files. I usually Google &#8220;vim newline replace&#8221;. And come to <a title="replace ^M" href="http://www.vim.org/tips/tip.php?tip_id=26">this</a> post on the vim website. It is also now available on <a title="replace ^M on wikia" href="http://vim.wikia.com/wiki/VimTip26">wikia</a>. Vim wikia is an example of very good wiki style collaboration.</p>
<p>The command I am using to replace ^M:</p>
<p><code>:%s/\r//g</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dudarev.com/viblog/?feed=rss2&#038;p=16</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Count words</title>
		<link>http://dudarev.com/viblog/?p=15</link>
		<comments>http://dudarev.com/viblog/?p=15#comments</comments>
		<pubDate>Mon, 17 Jul 2006 10:11:34 +0000</pubDate>
		<dc:creator>Artem</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dudarev.com/viblog/?p=15</guid>
		<description><![CDATA[This describes how to get information about number of words from vim. Use g Ctrl-g]]></description>
			<content:encoded><![CDATA[<p><a href="http://vimdoc.sourceforge.net/htmldoc/usr_12.html#12.5">This</a> describes how to get information about number of words from vim. Use</p>
<pre>g Ctrl-g</pre>
]]></content:encoded>
			<wfw:commentRss>http://dudarev.com/viblog/?feed=rss2&#038;p=15</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change encoding in 50 files</title>
		<link>http://dudarev.com/viblog/?p=14</link>
		<comments>http://dudarev.com/viblog/?p=14#comments</comments>
		<pubDate>Mon, 10 Jul 2006 20:34:36 +0000</pubDate>
		<dc:creator>Artem</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dudarev.com/viblog/?p=14</guid>
		<description><![CDATA[Task: change encoding in 50 files from windows to utf. Solution: map map q :set fileencoding=utf-8:wn Open all files in one window and press q, until encoding is changed in all the files. In the last file the command &#8216;n&#8217; will not work &#8211; just quit.]]></description>
			<content:encoded><![CDATA[<p>Task: change encoding in 50 files from windows to utf. Solution: map</p>
<pre>map q :set fileencoding=utf-8<enter>:wn<enter></pre>
<p>Open all files in one window and press q, until encoding is changed in all the files. In the last file the command &#8216;n&#8217; will not work &#8211; just quit.</p>
]]></content:encoded>
			<wfw:commentRss>http://dudarev.com/viblog/?feed=rss2&#038;p=14</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>End of file</title>
		<link>http://dudarev.com/viblog/?p=13</link>
		<comments>http://dudarev.com/viblog/?p=13#comments</comments>
		<pubDate>Fri, 07 Jul 2006 13:12:09 +0000</pubDate>
		<dc:creator>Artem</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dudarev.com/viblog/?p=13</guid>
		<description><![CDATA[The first line always has number one. How about the last line? The &#8220;$&#8221; character is used for this. For example, to substitute in the lines from the cursor to the end: :.,$s/yes/no/ From here.]]></description>
			<content:encoded><![CDATA[<p>The first line always has number one. How about the last line? The &#8220;$&#8221; character is used for this. For example, to substitute in the lines from the cursor to the end:</p>
<pre>:.,$s/yes/no/</pre>
<p>From <a href="http://vimdoc.sourceforge.net/htmldoc/usr_10.html#10.3">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dudarev.com/viblog/?feed=rss2&#038;p=13</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Editing more than one file</title>
		<link>http://dudarev.com/viblog/?p=12</link>
		<comments>http://dudarev.com/viblog/?p=12#comments</comments>
		<pubDate>Fri, 07 Jul 2006 10:50:34 +0000</pubDate>
		<dc:creator>Artem</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dudarev.com/viblog/?p=12</guid>
		<description><![CDATA[Highlight several files and with right click select &#8220;Edit with single Vim&#8221;. To go to the next file type :next or simply :n If quit and there are some files left, vim will generate an error: &#8220;More files to edit&#8221;. Simply quit one more time.]]></description>
			<content:encoded><![CDATA[<p>Highlight several files and with right click select &#8220;Edit with single Vim&#8221;. To go to the next file type</p>
<pre>:next</pre>
<p>or simply</p>
<pre>:n</pre>
<p>If quit and there are some files left, vim will generate an error: &#8220;More files to edit&#8221;. Simply quit one more time.</p>
]]></content:encoded>
			<wfw:commentRss>http://dudarev.com/viblog/?feed=rss2&#038;p=12</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set encoding</title>
		<link>http://dudarev.com/viblog/?p=11</link>
		<comments>http://dudarev.com/viblog/?p=11#comments</comments>
		<pubDate>Wed, 28 Jun 2006 15:34:32 +0000</pubDate>
		<dc:creator>Artem</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dudarev.com/viblog/?p=11</guid>
		<description><![CDATA[For the Donetsk map site I use a simple database in txt files so far. Each file has Russian characters. In version 6.2 the encoding for Russian symbols was native Windows. In version 7.0 I have to type :set fileencoding=cp1251 to have it the same.]]></description>
			<content:encoded><![CDATA[<p>For the <a href="http://www.dudarev.com/donetskinfo/">Donetsk map</a> site I use a simple database in txt files so far. Each file has Russian characters. In version 6.2 the encoding for Russian symbols was native Windows. In version 7.0 I have to type</p>
<pre>:set fileencoding=cp1251</pre>
<p>to have it the same.</p>
]]></content:encoded>
			<wfw:commentRss>http://dudarev.com/viblog/?feed=rss2&#038;p=11</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vim and Thunderbird</title>
		<link>http://dudarev.com/viblog/?p=10</link>
		<comments>http://dudarev.com/viblog/?p=10#comments</comments>
		<pubDate>Sun, 25 Jun 2006 10:32:22 +0000</pubDate>
		<dc:creator>Artem</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dudarev.com/viblog/?p=10</guid>
		<description><![CDATA[To use gvim and Thunderbird External editor extension for Thunderbird can be used. When downloaded in Tunderbird go to Tools>Entensions>Install and browse to the file. After installation start composing a message and go to View>Toolbars>Customize and pull the External editor to the sidebar. Then go back to main window Tools>Entensions>Options for the editor and enter [...]]]></description>
			<content:encoded><![CDATA[<p>To use gvim and Thunderbird <a href="http://globs.org/articles.php?lng=en&#038;pg=2">External editor</a> extension for Thunderbird can be used.</p>
<p>When downloaded in Tunderbird go to Tools>Entensions>Install and browse to the file.</p>
<p>After installation start composing a message and go to View>Toolbars>Customize and pull the External editor to the sidebar.</p>
<p>Then go back to main window Tools>Entensions>Options for the editor and enter the path (do not forget &#8211;nofork option)</p>
<pre>$Vim/vim70/gvim.exe --nofork</pre>
<p>Change $Vim to the main directory for vim</p>
<p><a href="http://www.appliedmiscellany.com/blog/archives/22">Here</a> is more detailed description.</p>
]]></content:encoded>
			<wfw:commentRss>http://dudarev.com/viblog/?feed=rss2&#038;p=10</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Russian keymap</title>
		<link>http://dudarev.com/viblog/?p=8</link>
		<comments>http://dudarev.com/viblog/?p=8#comments</comments>
		<pubDate>Sun, 25 Jun 2006 10:20:35 +0000</pubDate>
		<dc:creator>Artem</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dudarev.com/viblog/?p=8</guid>
		<description><![CDATA[A problem: when using Shift+Ctrl to switch the keyboard layout it is neccessary to switch again after Esc for browsing the document. Solution: use keymap. Vim has various keymap in $Vim/vim70/keymap The problem is that phonetic Russian layout is slightly different from what I am using so I have modified it a little. The file [...]]]></description>
			<content:encoded><![CDATA[<p>A problem: when using Shift+Ctrl to switch the keyboard layout it is neccessary to switch again after Esc for browsing the document.</p>
<p>Solution: <a href="http://vimdoc.sourceforge.net/htmldoc/russian.html#Russian">use</a> keymap. Vim has various keymap in</p>
<pre>$Vim/vim70/keymap</pre>
<p>The problem is that phonetic Russian layout is slightly different from what I am using so I have modified it a little. The file <a title="Russian keymap" id="p9" href="http://dudarev.com/viblog/rus.vim">rus.vim</a> is attached. To switch to the keymap use</p>
<pre>:set keymap=rus</pre>
<p>To switch keymaps in input mode use</p>
<pre>Ctrl+^</pre>
<p>On a note relevant to this post. <a href="http://wphooks.flatearth.org/hooks/upload_mimes/">Here</a> it is explained how to upload files with additional extensions. Simply</p>
<pre>vi wp-admin/admin-functions.php</pre>
<p>in the blog directory and look for &#8220;jpg&#8221;. Insert additional extensions there.</p>
]]></content:encoded>
			<wfw:commentRss>http://dudarev.com/viblog/?feed=rss2&#038;p=8</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spelling</title>
		<link>http://dudarev.com/viblog/?p=7</link>
		<comments>http://dudarev.com/viblog/?p=7#comments</comments>
		<pubDate>Wed, 21 Jun 2006 21:24:58 +0000</pubDate>
		<dc:creator>Artem</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dudarev.com/viblog/?p=7</guid>
		<description><![CDATA[In LaTeX I had problems with spelling: some words are not recognized as wrong. The solution was to turn of the syntax highlighting :syntax off It was found in this article. There also info about tabs, undos, code completion etc. :zg Adds a word to dictionary. Found in help. Here is a blog post describing [...]]]></description>
			<content:encoded><![CDATA[<p>In LaTeX I had problems with spelling: some words are not recognized as wrong. The solution was to turn of the syntax highlighting</p>
<pre>:syntax off</pre>
<p>It was found in <a href="http://www.linux.com/article.pl?sid=06/05/01/2235242">this</a> article. There also info about tabs, undos, code completion etc.</p>
<pre>:zg</pre>
<p>Adds a word to dictionary. Found in help.</p>
<p><a href="http://eatthedots.blogspot.com/2006/04/vim-70-spellcheck.html">Here</a> is a blog post describing the spell checker.</p>
]]></content:encoded>
			<wfw:commentRss>http://dudarev.com/viblog/?feed=rss2&#038;p=7</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wrapping after 76 characters</title>
		<link>http://dudarev.com/viblog/?p=6</link>
		<comments>http://dudarev.com/viblog/?p=6#comments</comments>
		<pubDate>Wed, 21 Jun 2006 13:04:24 +0000</pubDate>
		<dc:creator>Artem</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dudarev.com/viblog/?p=6</guid>
		<description><![CDATA[Removed the following line from vimrc file. " Wrap after 76 Chars (could probably be 77, too) set textwidth=75 It is probably relevant for Phython, but annoying for LaTex.]]></description>
			<content:encoded><![CDATA[<p>Removed the following line from vimrc file.</p>
<pre>" Wrap after 76 Chars (could probably be 77, too)
set textwidth=75</pre>
<p>It is probably relevant for Phython, but annoying for LaTex.</p>
]]></content:encoded>
			<wfw:commentRss>http://dudarev.com/viblog/?feed=rss2&#038;p=6</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

