<?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>Case &#187; vim</title>
	<atom:link href="http://case.net.ru/tag/vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://case.net.ru</link>
	<description>Just another technical weblog</description>
	<lastBuildDate>Sat, 19 Jun 2010 14:06:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Использование табов (вкладок) в VIM 7</title>
		<link>http://case.net.ru/2009/03/10/tabs-invim-7/</link>
		<comments>http://case.net.ru/2009/03/10/tabs-invim-7/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 16:24:10 +0000</pubDate>
		<dc:creator>Case</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://case.net.ru/?p=379</guid>
		<description><![CDATA[Открыть несколько файлов, каждый в своем табе: $ vim -p file1 file2 file3 Открыть файл для редактирования в новом табе: :tabe /path/to/file Закрыть таб: :tabc или :wq или ZZ Перейти к следующему табу: :tabn Перейти к предыдущему табу: :tabp Вывести список открытых табов: :tabs Справка по табам: :help tabpage]]></description>
			<content:encoded><![CDATA[<p>Открыть несколько файлов, каждый в своем табе:<br />
$ vim -p file1 file2 file3<br />
Открыть файл для редактирования в новом табе:<br />
:tabe /path/to/file<br />
Закрыть таб:<br />
:tabc или :wq или ZZ<br />
Перейти к следующему табу:<br />
:tabn<br />
Перейти к предыдущему табу:<br />
:tabp<br />
Вывести список открытых табов:<br />
:tabs<br />
Справка по табам:<br />
:help tabpage</p>
]]></content:encoded>
			<wfw:commentRss>http://case.net.ru/2009/03/10/tabs-invim-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VIM</title>
		<link>http://case.net.ru/2009/02/28/vim/</link>
		<comments>http://case.net.ru/2009/02/28/vim/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 12:54:14 +0000</pubDate>
		<dc:creator>Case</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://case.net.ru/?p=306</guid>
		<description><![CDATA[Vim is a virtually compatible, extremely enhanced, version of the UNIX text editor vi. There are a lot of enhancements above Vi: multi level undo, multi-windows and buffers, syntax highlighting, command line editing, filename completion, on-line help, visual selection, etc.. Many features above standard vi&#8217;s have been added: multiple windows and buffers, multi level undo, [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Vim is a virtually compatible, extremely enhanced, version of the UNIX<br />
text editor vi.</p>
<p>There are a lot of enhancements above Vi: multi level undo, multi-windows<br />
and buffers, syntax highlighting, command line editing, filename completion,<br />
on-line help, visual selection, etc..</p>
<p>Many features above standard vi&#8217;s have been added:<br />
    multiple windows and buffers, multi level undo, command line history,<br />
    filename completion, selection highlighting, block operations (including<br />
    column/rectangular blocks), syntax highlighting, on-line help, etc.<br />
        Embeded Perl, Tcl, and Python support.<br />
        See &#8220;:help vi_diff&#8221; for a summary of the differences between Vim and Vi.</p>
<p>        An X-windows aware or a full X-windows GUI version can also be built<br />
        that allows full use of the mouse and pull-down menus</p>
<p>See http://www.vim.org/why.html for a full explanation of Vim&#8217;s features.</p>
<p>Portability to all UNIX platforms, AmigaOS, Archimedes, Atari MiNT, BeOS,<br />
M$-DOS, MacOS, OS/2, VMS, WinNT+Win95.</p>
<p>&#8211; David        (obrien@cs.ucdavis.edu)<br />
WWW: http://www.vim.org/</p></blockquote>
<p>Для начала уберем поддержку X11 &#8211; в файле /usr/local/etc/pkgtools.conf должно быть следующее:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">  MAKE_ARGS = <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        <span style="color: #ff0000;">'editors/vim'</span> =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #ff0000;">'WITHOUT_X11=1'</span>,
  <span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></td></tr></table></div>

<p>Устанавливаем:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># portinstall vim</span></pre></td></tr></table></div>

<p>Производим небольшую настройку в файле ~/.vimrc:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="vim" style="font-family:monospace;">set title
set fdm=marker
set shiftwidth=<span style="color: #000000; font-weight:bold;">4</span>
set ts=<span style="color: #000000; font-weight:bold;">4</span>
set ruler
au BufReadPost <span style="color: #000000;">*</span> <span style="color: #804040;">if</span> <span style="color: #25BB4D;">line</span><span style="color: #000000;">&#40;</span><span style="color: #C5A22D;">&quot;'&quot;</span><span style="color: #C5A22D;">&quot;) &gt; 0 &amp;&amp; line(&quot;</span><span style="color: #C5A22D;">'&quot;&quot;) &lt;= line(&quot;$&quot;) | exe &quot;normal g'</span><span style="color: #C5A22D;">&quot;&quot;</span> <span style="color: #000000;">|</span> <span style="color: #804040;">endif</span>
syntax on
set nomodeline</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://case.net.ru/2009/02/28/vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
