<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-12537303</id><updated>2011-12-14T19:00:54.137-08:00</updated><category term='vim'/><title type='text'>Adventures in vim.</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vimtp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://vimtp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Thomas</name><uri>http://www.blogger.com/profile/08347962976730903449</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-12537303.post-115037758484888283</id><published>2006-06-15T06:18:00.000-07:00</published><updated>2009-01-08T13:12:13.103-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><title type='text'>Vim references</title><content type='html'>&lt;a href="http://vim.sourceforge.net/htmldoc/quickref.html"&gt;http://vim.sourceforge.net/htmldoc/quickref.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.vim.org/tips/tip.php?tip_id=422"&gt;http://www.vim.org/tips/tip.php?tip_id=422&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12537303-115037758484888283?l=vimtp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vimtp.blogspot.com/feeds/115037758484888283/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12537303&amp;postID=115037758484888283' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/115037758484888283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/115037758484888283'/><link rel='alternate' type='text/html' href='http://vimtp.blogspot.com/2006/06/vim-references.html' title='Vim references'/><author><name>Thomas</name><uri>http://www.blogger.com/profile/08347962976730903449</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12537303.post-111816341046955527</id><published>2005-06-07T09:47:00.000-07:00</published><updated>2009-01-08T13:12:13.103-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><title type='text'>remotesplit for cscope revisited</title><content type='html'>I've decided to go with a remote tactic that's slightly more reliable than my previous tactic:  Name the gvim server by the contents of the $DISPLAY variable.  I have side-by-side PCs with their own X-servers, so I want to send the file to the gvim server that is outputting the same place as my cscope session.  I now grep the $DISPLAY out of the gvim server list, to determing whether I am going to set up a new server or use an existing one.&lt;br /&gt;&lt;br /&gt;My remotesplit:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;gvim --serverlist | grep -i &amp;quot;$DISPLAY&amp;quot; 2&amp;gt;/dev/null&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;if [ $? -ne 0 ]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;then&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;gvim --servername $DISPLAY $*&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;else&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;gvim --remote-send "&amp;lt;ESC&amp;gt;:sp $CSCOPE_ROOT/$2&amp;lt;CR&amp;gt;:0&amp;lt;CR&amp;gt;:$1&amp;lt;CR&amp;gt;:-1&amp;lt;CR&amp;gt;" 2&gt;/dev/null&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;fi&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12537303-111816341046955527?l=vimtp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vimtp.blogspot.com/feeds/111816341046955527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12537303&amp;postID=111816341046955527' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/111816341046955527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/111816341046955527'/><link rel='alternate' type='text/html' href='http://vimtp.blogspot.com/2005/06/remotesplit-for-cscope-revisited.html' title='remotesplit for cscope revisited'/><author><name>Thomas</name><uri>http://www.blogger.com/profile/08347962976730903449</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12537303.post-111625346547553869</id><published>2005-05-16T07:13:00.000-07:00</published><updated>2009-01-08T13:12:13.103-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><title type='text'>remotesplit for cscope</title><content type='html'>On a multiuser environment, I added the 'ps -fu' bit to detect a gvim session, slightly more fool-resistant than just checking the result code of the --remote-send call.&lt;br /&gt;&lt;br /&gt;My remotesplit:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ps -fu $LOGNAME | grep -v grep | grep gvim 2&gt;/dev/null&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;if [ $? -ne 0 ]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;then&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;gvim $*&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;else&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;gvim --remote-send "&amp;lt;ESC&amp;gt;:sp $CSCOPE_ROOT/$2&amp;lt;CR&amp;gt;:0&amp;lt;CR&amp;gt;:$1&amp;lt;CR&amp;gt;:-1&amp;lt;CR&amp;gt;" 2&gt;/dev/null&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;fi&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12537303-111625346547553869?l=vimtp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vimtp.blogspot.com/feeds/111625346547553869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12537303&amp;postID=111625346547553869' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/111625346547553869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/111625346547553869'/><link rel='alternate' type='text/html' href='http://vimtp.blogspot.com/2005/05/remotesplit-for-cscope.html' title='remotesplit for cscope'/><author><name>Thomas</name><uri>http://www.blogger.com/profile/08347962976730903449</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12537303.post-111480741625058583</id><published>2005-04-29T13:41:00.000-07:00</published><updated>2009-01-08T13:12:13.103-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><title type='text'>gvim-specific</title><content type='html'>&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-family: courier new;"&gt;:menu MENUBARITEM.DROPDOWNITEM [keystrokes go here]&lt;/span&gt; - Appends/updates a drop-down menu, MENUBARITEM, with DROPDOWNITEM as the last menu selection. When this menu is selected, the keystrokes specified at the end are entered.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;fixed style="font-family: courier new;"&gt;:hi Search guibg=LightGreen&lt;/fixed&gt; - change background for search highlighting.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12537303-111480741625058583?l=vimtp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vimtp.blogspot.com/feeds/111480741625058583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12537303&amp;postID=111480741625058583' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/111480741625058583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/111480741625058583'/><link rel='alternate' type='text/html' href='http://vimtp.blogspot.com/2005/04/gvim-specific.html' title='gvim-specific'/><author><name>Thomas</name><uri>http://www.blogger.com/profile/08347962976730903449</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12537303.post-111480604062460803</id><published>2005-04-29T13:19:00.000-07:00</published><updated>2009-01-08T13:12:13.103-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><title type='text'>Command line options</title><content type='html'>&lt;ul&gt;   &lt;li&gt;&lt;fixed style="font-family: courier new;"&gt;-o N&lt;/fixed&gt; - open N windows, or as many windows as file arguments passed (open windows as splits within the same session)&lt;/li&gt; &lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12537303-111480604062460803?l=vimtp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vimtp.blogspot.com/feeds/111480604062460803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12537303&amp;postID=111480604062460803' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/111480604062460803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/111480604062460803'/><link rel='alternate' type='text/html' href='http://vimtp.blogspot.com/2005/04/command-line-options.html' title='Command line options'/><author><name>Thomas</name><uri>http://www.blogger.com/profile/08347962976730903449</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
