patch for info.vim

GNUのコマンドはinfoで解説が提供されている。infoはemacs系のキーバインディングなので、vim使いにとっては使いづらい。そこで、vimからinfoを読むための、info.vimを使う。移動やジャンプにvimのコマンドが使えるので、幸せになれる。

ただ、Vim 7.Xに対応していないためか、「Info: (screen)Top」みたいな一時ファイルがカレントディレクトリに残る。これを直すためのパッチ。

diff -r fd3d76b06815 plugin/info.vim
--- a/plugin/info.vim	Sun Jan 16 00:19:12 2011 +0900
+++ b/plugin/info.vim	Sun Jan 16 01:16:28 2011 +0900
@@ -90,7 +90,8 @@
 	else
 	    let command = 'new'
 	endif
-	silent! exe command "+exe'setlocal''modifiable''noswapfile''buftype=nofile''bufhidden=delete'" escape(bufname, '\ ')
+	let modifier="+setlocal\\ modifiable\\ noswapfile\\ buftype=nofile\\ bufhidden=hide"
+	silent! exe command modifier escape(bufname, '\ ')
 	setf info
 
 	let cmd = s:infoCmd." '".a:file.a:node."' 2>/dev/null"