<?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>夜弓的咖啡馆 &#187; 脚本</title>
	<atom:link href="http://yegong.net/tag/chs-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://yegong.net</link>
	<description>夜弓=Cooper=某间咖啡室的老板(尚未开张)</description>
	<lastBuildDate>Tue, 27 Jul 2010 04:18:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>VIM的囧插件vimim</title>
		<link>http://yegong.net/vim%e7%9a%84%e5%9b%a7%e6%8f%92%e4%bb%b6vimim/</link>
		<comments>http://yegong.net/vim%e7%9a%84%e5%9b%a7%e6%8f%92%e4%bb%b6vimim/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 23:48:59 +0000</pubDate>
		<dc:creator>cooper</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[VIM]]></category>
		<category><![CDATA[vimim]]></category>
		<category><![CDATA[脚本]]></category>
		<category><![CDATA[输入法]]></category>

		<guid isPermaLink="false">http://yegong.net/?p=471</guid>
		<description><![CDATA[作为一款历史悠久的编辑器，VIM拥有数量众多的脚本插件。山多出杂木，人多出怪物，今天我就遇到一个比较雷人的插件vimim。 这名字就够神奇，如果把它写成VimIM的话，就容易理解多了。这正是一个给Vim提供输入法的插件。按作者的说法，输入汉字再也不需要操作系统了，只要能显示，就能在Vim中输入。换作Emacs，倒还是可以考虑一下。现在这种状况，发一封邮件难道还要复制粘贴……确实是很囧 Leave a comment Category : Coding &#124; Tags : Emacs, plugin, script, VIM, vimim, 脚本, 输入法]]></description>
			<content:encoded><![CDATA[<p>作为一款历史悠久的编辑器，VIM拥有数量众多的脚本插件。山多出杂木，人多出怪物，今天我就遇到一个比较雷人的插件<a href="http://maxiangjiang.googlepages.com/vimim.html">vimim</a>。</p>
<p>这名字就够神奇，如果把它写成VimIM的话，就容易理解多了。这正是一个给Vim提供输入法的插件。按作者的说法，输入汉字再也不需要操作系统了，只要能显示，就能在Vim中输入。换作Emacs，倒还是可以考虑一下。现在这种状况，发一封邮件难道还要复制粘贴……确实是很囧</p>
<p><a href="http://yegong.net/vim%e7%9a%84%e5%9b%a7%e6%8f%92%e4%bb%b6vimim/#comments">Leave a comment</a></p>
<p>Category : <a href="http://yegong.net/category/coding/" title="View all posts in Coding" rel="category tag">Coding</a> | Tags : <a href="http://yegong.net/tag/emacs/" rel="tag">Emacs</a>, <a href="http://yegong.net/tag/plugin/" rel="tag">plugin</a>, <a href="http://yegong.net/tag/script/" rel="tag">script</a>, <a href="http://yegong.net/tag/vim/" rel="tag">VIM</a>, <a href="http://yegong.net/tag/vimim/" rel="tag">vimim</a>, <a href="http://yegong.net/tag/chs-script/" rel="tag">脚本</a>, <a href="http://yegong.net/tag/im/" rel="tag">输入法</a></p>
<!-- Analytics by image -->
<img alt="analytics image" src="http://img.users.51.la/2657393.asp" style="border:none;height:1px;width:1px;" />]]></content:encoded>
			<wfw:commentRss>http://yegong.net/vim%e7%9a%84%e5%9b%a7%e6%8f%92%e4%bb%b6vimim/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VIM通用时间戳脚本</title>
		<link>http://yegong.net/timestamp-script-for-vim/</link>
		<comments>http://yegong.net/timestamp-script-for-vim/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 19:53:17 +0000</pubDate>
		<dc:creator>cooper</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[VIM]]></category>
		<category><![CDATA[下载]]></category>
		<category><![CDATA[脚本]]></category>

		<guid isPermaLink="false">http://yegong.net/?p=239</guid>
		<description><![CDATA[曾经写过一个VIM的时间戳脚本，用于自动在源代码文件中添加和更新时间戳，也就是Last Change的注释。前段时间重新写.vimrc，把这个脚本又完善了一下，下载请点。 PS. 最近VIM又学到不少技巧。觉得最有用的:!grep可以把visual模式下选中的行用grep工具过滤。其次可以把ii设置成命令模式和插入模式的开关。少了遥远的&#60;Esc&#62;效率高好多，就算不清醒，这个命令也基本上是无害的。 function! TimeStamp(...) let sbegin = '' let send = '' if a:0 &#62;= 1 let sbegin = a:1.' ' endif if a:0 &#62;= 2 let send = ' '.a:2 endif let pattern = sbegin . 'Last Change: .\+' \. send let pattern = '^\s*' . pattern . '\s*$' let row = [...]]]></description>
			<content:encoded><![CDATA[<p>曾经写过一个VIM的时间戳脚本，用于自动在源代码文件中添加和更新时间戳，也就是Last Change的注释。前段时间重新写.vimrc，把这个脚本又完善了一下，<a href="http://www.vim.org/scripts/script.php?script_id=2159">下载请点</a>。</p>
<p>PS. 最近VIM又学到不少技巧。觉得最有用的:!grep可以把visual模式下选中的行用grep工具过滤。其次可以把ii设置成命令模式和插入模式的开关。少了遥远的&lt;Esc&gt;效率高好多，就算不清醒，这个命令也基本上是无害的。</p>
<pre>function! TimeStamp(...)
    let sbegin = ''
    let send = ''
    if a:0 &gt;= 1
        let sbegin = a:1.' '
    endif
    if a:0 &gt;= 2
        let send = ' '.a:2
    endif
    let pattern = sbegin . 'Last Change: .\+'
        \. send
    let pattern = '^\s*' . pattern . '\s*$'
    let row = search(pattern, 'n')
    let now = strftime('%Y-%m-%d %H:%M:%S',
        \localtime())
    let now = sbegin . 'Last Change: '
        \. now . send
    if row == 0
        call append(0, now)
    else
        call setline(row, now)
    endif
endfunction

au BufWritePre _vimrc,*.vim   call TimeStamp('"')
au BufWritePre *.c,*.h        call TimeStamp('//')
au BufWritePre *.cpp,*.hpp    call TimeStamp('//')
au BufWritePre *.cxx,*.hxx    call TimeStamp('//')
au BufWritePre *.java         call TimeStamp('//')
au BufWritePre *.rb           call TimeStamp('#')
au BufWritePre *.py           call TimeStamp('#')
au BufWritePre Makefile       call TimeStamp('#')
au BufWritePre *.php
    \call TimeStamp('&lt;?php //', '?&gt;')
au BufWritePre *.html,*htm
    \call TimeStamp('&lt;!--', '--&gt;')</pre>
<p><a href="http://yegong.net/timestamp-script-for-vim/#comments">Leave a comment</a></p>
<p>Category : <a href="http://yegong.net/category/coding/" title="View all posts in Coding" rel="category tag">Coding</a> | Tags : <a href="http://yegong.net/tag/script/" rel="tag">script</a>, <a href="http://yegong.net/tag/vim/" rel="tag">VIM</a>, <a href="http://yegong.net/tag/download/" rel="tag">下载</a>, <a href="http://yegong.net/tag/chs-script/" rel="tag">脚本</a></p>
<!-- Analytics by image -->
<img alt="analytics image" src="http://img.users.51.la/2657393.asp" style="border:none;height:1px;width:1px;" />]]></content:encoded>
			<wfw:commentRss>http://yegong.net/timestamp-script-for-vim/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->