<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-12537303</id><updated>2008-07-07T10:06:12.974-07:00</updated><title type='text'>Adventures in vim.</title><link rel='alternate' type='text/html' href='http://vim.thomaspowell.com/'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vim.thomaspowell.com/atom.xml'/><author><name>Thomas</name><uri>http://www.blogger.com/profile/08347962976730903449</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-12537303.post-115037758484888283</id><published>2006-06-15T06:18:00.000-07:00</published><updated>2006-06-15T06:19:44.866-07:00</updated><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;</content><link rel='alternate' type='text/html' href='http://vim.thomaspowell.com/2006/06/vim-references.html' title='Vim references'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12537303&amp;postID=115037758484888283' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://vim.thomaspowell.com/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/115037758484888283'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/115037758484888283'/><author><name>Thomas</name><uri>http://www.blogger.com/profile/08347962976730903449</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12537303.post-111816341046955527</id><published>2005-06-07T09:47:00.000-07:00</published><updated>2005-06-07T09:56:50.473-07:00</updated><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;</content><link rel='alternate' type='text/html' href='http://vim.thomaspowell.com/2005/06/remotesplit-for-cscope-revisited.html' title='remotesplit for cscope revisited'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12537303&amp;postID=111816341046955527' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://vim.thomaspowell.com/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/111816341046955527'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/111816341046955527'/><author><name>Thomas</name><uri>http://www.blogger.com/profile/08347962976730903449</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12537303.post-111625346547553869</id><published>2005-05-16T07:13:00.000-07:00</published><updated>2005-05-16T07:28:49.276-07:00</updated><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;</content><link rel='alternate' type='text/html' href='http://vim.thomaspowell.com/2005/05/remotesplit-for-cscope.html' title='remotesplit for cscope'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12537303&amp;postID=111625346547553869' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://vim.thomaspowell.com/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/111625346547553869'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/111625346547553869'/><author><name>Thomas</name><uri>http://www.blogger.com/profile/08347962976730903449</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12537303.post-111480741625058583</id><published>2005-04-29T13:41:00.000-07:00</published><updated>2005-04-30T18:50:54.196-07:00</updated><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;</content><link rel='alternate' type='text/html' href='http://vim.thomaspowell.com/2005/04/gvim-specific.html' title='gvim-specific'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12537303&amp;postID=111480741625058583' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://vim.thomaspowell.com/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/111480741625058583'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/111480741625058583'/><author><name>Thomas</name><uri>http://www.blogger.com/profile/08347962976730903449</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12537303.post-111480604062460803</id><published>2005-04-29T13:19:00.000-07:00</published><updated>2005-05-03T08:10:03.576-07:00</updated><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;</content><link rel='alternate' type='text/html' href='http://vim.thomaspowell.com/2005/04/command-line-options.html' title='Command line options'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12537303&amp;postID=111480604062460803' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://vim.thomaspowell.com/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/111480604062460803'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12537303/posts/default/111480604062460803'/><author><name>Thomas</name><uri>http://www.blogger.com/profile/08347962976730903449</uri><email>noreply@blogger.com</email></author></entry></feed>