<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[ViEmu Forums - What are your favorite mappings, tips & tricks?]]></title>
		<link>http://www.viemu.com/forum/viewtopic.php?id=461</link>
		<description><![CDATA[The most recent posts in What are your favorite mappings, tips & tricks?.]]></description>
		<lastBuildDate>Wed, 01 Sep 2010 02:54:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: What are your favorite mappings, tips & tricks?]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=5047#p5047</link>
			<description><![CDATA[<p>Hi Jon,</p><p>I have some problems with my &#039;copy&#039; and &#039;paste&#039; key bindings. Whenever I copy from any other source I have to open View -&gt; Paste. I just want to know which key is for Ctrl-C and which key is for Ctrl-C. In Linux I used +gP and +y for paste and copy. I wonder is there a similar way in Visual Studio?</p><p>Thanks,</p>]]></description>
			<author><![CDATA[dummy@example.com (chan_nguyen)]]></author>
			<pubDate>Wed, 01 Sep 2010 02:54:56 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=5047#p5047</guid>
		</item>
		<item>
			<title><![CDATA[Re: What are your favorite mappings, tips & tricks?]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=4593#p4593</link>
			<description><![CDATA[<p>Thanks John,<br />Got it work perfectly <img src="http://www.viemu.com/forum/img/smilies/wink.png" width="15" height="15" alt="wink" /> !</p>]]></description>
			<author><![CDATA[dummy@example.com (chan_nguyen)]]></author>
			<pubDate>Tue, 03 Aug 2010 21:58:02 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=4593#p4593</guid>
		</item>
		<item>
			<title><![CDATA[Re: What are your favorite mappings, tips & tricks?]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=4582#p4582</link>
			<description><![CDATA[<p>Chan, it should work. Make sure it is in your user folder (%HOMEDRIVE% and %HOMEPATH%), and that if you go with the CMD console, a DIR shows it there (that it&#039;s not a &quot;shadow&quot; file). Please follow up with us if this does not help.</p>]]></description>
			<author><![CDATA[dummy@example.com (Jon_Symnum)]]></author>
			<pubDate>Sun, 01 Aug 2010 17:35:05 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=4582#p4582</guid>
		</item>
		<item>
			<title><![CDATA[Re: What are your favorite mappings, tips & tricks?]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=4579#p4579</link>
			<description><![CDATA[<p>Hi Jon,<br />I started using viEmu under Visual Studio 2010 lately, but seem like _viemurc did not work for VS2010. I edited the _vieumrc already, but when I launched VS2010, it did not load the key that I mapped. Can you help me out?</p><p>Thanks,</p>]]></description>
			<author><![CDATA[dummy@example.com (chan_nguyen)]]></author>
			<pubDate>Sun, 01 Aug 2010 06:12:24 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=4579#p4579</guid>
		</item>
		<item>
			<title><![CDATA[Re: What are your favorite mappings, tips & tricks?]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=4384#p4384</link>
			<description><![CDATA[<p>Sorry Chan, I wrote it wrong, it&#039;s _viemurc of course as you found out!</p>]]></description>
			<author><![CDATA[dummy@example.com (Jon_Symnum)]]></author>
			<pubDate>Fri, 09 Jul 2010 14:24:40 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=4384#p4384</guid>
		</item>
		<item>
			<title><![CDATA[Re: What are your favorite mappings, tips & tricks?]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=4376#p4376</link>
			<description><![CDATA[<p>Hi Jon,</p><p>Thanks again, but I couldn&#039;t find _viemu in either those directory. I&#039;m running Windows Server 2003 at work and I could not find it either? So is it possible for me to create one? Can you post the content of your _viemu file if you have a chance?</p><p>Thanks,</p><p>Edit :<br />Just create on file named &quot;_viemurc&quot; in ViEmu folder, it worked <img src="http://www.viemu.com/forum/img/smilies/sad.png" width="15" height="15" alt="sad" /> ! So simple <img src="http://www.viemu.com/forum/img/smilies/wink.png" width="15" height="15" alt="wink" /> ! <br />Thanks Jon !</p>]]></description>
			<author><![CDATA[dummy@example.com (chan_nguyen)]]></author>
			<pubDate>Thu, 08 Jul 2010 19:48:15 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=4376#p4376</guid>
		</item>
		<item>
			<title><![CDATA[Re: What are your favorite mappings, tips & tricks?]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=4351#p4351</link>
			<description><![CDATA[<p>Chan,</p><p>You home folder is typically one of these two:</p><p>&nbsp; C:\Documents and Settings\{username}<br />&nbsp; C:\Users\{username}</p><p>The first one in Windows XP, then second one in Vista or later.</p><p>The infallible way to tell is to launch a command window and type the following commands:</p><p>&nbsp; echo %HOMEDRIVE%<br />&nbsp; echo %HOMEPATH%</p><p>This way, you should know the path where to get it.</p><p>Apart from this, the Windows shell indeed causes trouble with filenames starting with a dot. That is why ViEmu allows the file to be called &quot;_viemu&quot; with an underscore. Try doing that, it should work.</p><p>[[EDIT: there is a mistake above, it should say &quot;_viemurc&quot; instead of &quot;_viemu&quot;]]</p>]]></description>
			<author><![CDATA[dummy@example.com (Jon_Symnum)]]></author>
			<pubDate>Mon, 05 Jul 2010 07:41:42 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=4351#p4351</guid>
		</item>
		<item>
			<title><![CDATA[Re: What are your favorite mappings, tips & tricks?]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=4347#p4347</link>
			<description><![CDATA[<p>Hi Jon,<br />Sorry for my stupid question, but I don&#039;t really understand what are %HOMEDRIVE% and %HOMEPATH% environment variables &quot;folder&quot;. And I tried to create a new file and named it .viemurc but Windows 7 does not let me to do so. It told me that I need to specify a file name. So I think .viemurc must be a special file right? Can you give me some more hints? Thanks a lot for your quick support <img src="http://www.viemu.com/forum/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (chan_nguyen)]]></author>
			<pubDate>Mon, 05 Jul 2010 01:18:50 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=4347#p4347</guid>
		</item>
		<item>
			<title><![CDATA[Re: What are your favorite mappings, tips & tricks?]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=4318#p4318</link>
			<description><![CDATA[<p>Chan, it could be in your user directory too (see %HOMEDRIVE% and %HOMEPATH% environment variables). Regards, - Jon</p>]]></description>
			<author><![CDATA[dummy@example.com (Jon_Symnum)]]></author>
			<pubDate>Thu, 01 Jul 2010 17:01:09 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=4318#p4318</guid>
		</item>
		<item>
			<title><![CDATA[Re: What are your favorite mappings, tips & tricks?]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=4315#p4315</link>
			<description><![CDATA[<p>Hi Jon,<br />Somehow, I could not find my .viemurc under C:\Program Files\ViEmu <img src="http://www.viemu.com/forum/img/smilies/sad.png" width="15" height="15" alt="sad" /> ? Could you help ?</p>]]></description>
			<author><![CDATA[dummy@example.com (chan_nguyen)]]></author>
			<pubDate>Thu, 01 Jul 2010 14:22:15 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=4315#p4315</guid>
		</item>
		<item>
			<title><![CDATA[Re: What are your favorite mappings, tips & tricks?]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=3624#p3624</link>
			<description><![CDATA[<p>I don&#039;t have the code for it here now, but I created a mapping that indents/outdents the text within curly-braces.&nbsp; Very similar to the one you mentioned as &quot;Example #5: indenting a block&quot; on http://www.viemu.com/a-why-vi-vim.html except that it *doesn&#039;t* move the braces themselves.&nbsp; Since the braces are most often best considered as part of the *surrounding* block (particularly on function bodies, where they&#039;re already at the far left column), I find this behavior preferable.</p>]]></description>
			<author><![CDATA[dummy@example.com (rretter)]]></author>
			<pubDate>Sat, 10 Apr 2010 22:09:55 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=3624#p3624</guid>
		</item>
		<item>
			<title><![CDATA[Re: What are your favorite mappings, tips & tricks?]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=3157#p3157</link>
			<description><![CDATA[<p>Princker, thanks for sharing, it looks like an interesting macro! I don&#039;t do much C#, but this kind of thing could even be useful to add to Codekana for non-vi(m)ers.</p><p>Happy holidays!</p><p>&nbsp; -- Jon</p>]]></description>
			<author><![CDATA[dummy@example.com (Jon_Symnum)]]></author>
			<pubDate>Wed, 23 Dec 2009 19:57:25 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=3157#p3157</guid>
		</item>
		<item>
			<title><![CDATA[Re: What are your favorite mappings, tips & tricks?]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=3091#p3091</link>
			<description><![CDATA[<p>I use this one to convert c# members to properties</p><p>nmap &lt;C-P&gt; yyp:s/;/ {/&lt;CR&gt;k^diwiprivate&lt;Escape&gt;0f;bi_&lt;Escape&gt;yiwjoget { return &lt;Escape&gt;pa; }&lt;Escape&gt;oset { &lt;Escape&gt;pa = value; }&lt;Escape&gt;o}&lt;Escape&gt;==o&lt;Escape&gt;:noh&lt;CR&gt;</p><p>using &lt;c-p&gt; on a line like this:<br /></p><div class="codebox"><pre><code>public bool active;</code></pre></div><p>will convert to:<br /></p><div class="codebox"><pre><code>private bool _active; 
public bool active { 
    get { return _active; }
    set { _active = value; }
}</code></pre></div><p>real time saver on older .net 2.0 projects</p>]]></description>
			<author><![CDATA[dummy@example.com (princker)]]></author>
			<pubDate>Fri, 20 Nov 2009 21:39:35 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=3091#p3091</guid>
		</item>
		<item>
			<title><![CDATA[Re: What are your favorite mappings, tips & tricks?]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=2902#p2902</link>
			<description><![CDATA[<p>Thanks pDaleC, that looks like a great idea. ViEmu indeed can&#039;t originate new keypresses except for its own engine (faking user input in Windows is highly non-trivial). Fortunately AutoHotKey seems to be a great tool and allows that kind of thing!</p><p>In any case, this goes on to show how many useful things can be added to modern IDEs and similar environments... there is a lot of stuff to be made yet.</p>]]></description>
			<author><![CDATA[dummy@example.com (Jon_Symnum)]]></author>
			<pubDate>Fri, 04 Sep 2009 14:37:56 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=2902#p2902</guid>
		</item>
		<item>
			<title><![CDATA[Re: What are your favorite mappings, tips & tricks?]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=2894#p2894</link>
			<description><![CDATA[<p>This will take a bit to explain...</p><p>I&#039;ll define several procedures, etc, in a file like:</p><p>/* {<br />ALTER -- CREATE<br />&nbsp; PROCEDURE fubar<br />AS<br />&nbsp; BEGIN<br />&nbsp; &nbsp; RAISERROR( &#039;Hi&#039;, 0,1);<br />&nbsp; END;<br />} */</p><p>Then, with the cursor where-ever you happen to be editing inside the code, you can do &quot;vi{&lt;F5&gt;&quot; to recompile.</p><p>Unfortunately, it appears that you can&#039;t get ViEmu to pass the &lt;F5&gt; to SStudio, so I am using the open-source program AutoHotKey to create an &lt;a-F5&gt; hotkey to perform the above.&nbsp; I also define &lt;s-F5&gt; to select the current line from column 4 (assuming it is behind a &#039;-- &#039;) to the end of the line and execute it.</p>]]></description>
			<author><![CDATA[dummy@example.com (pDaleC)]]></author>
			<pubDate>Thu, 03 Sep 2009 14:19:53 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=2894#p2894</guid>
		</item>
	</channel>
</rss>
