<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[ViEmu Forums - Problem with ViEmu selection]]></title>
		<link>http://www.viemu.com/forum/viewtopic.php?id=3750</link>
		<description><![CDATA[The most recent posts in Problem with ViEmu selection.]]></description>
		<lastBuildDate>Fri, 03 Dec 2010 12:21:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Problem with ViEmu selection]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=6713#p6713</link>
			<description><![CDATA[<p>Thanks for the reply; I thought it might be a limitation with VS selections.<br />I did not know about gS, I&#039;ll try to remember to use that and see how it works.</p>]]></description>
			<author><![CDATA[dummy@example.com (Number8)]]></author>
			<pubDate>Fri, 03 Dec 2010 12:21:04 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=6713#p6713</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem with ViEmu selection]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=6711#p6711</link>
			<description><![CDATA[<p>Number8, this is not ViEmu, but VS standard behavior. If you put the cursor at the beginning of doSomething() and press down two times with Shift pressed (to extend the VS selection to the two doSomething lines) and then use Ctrl-K, Ctrl-S (with or without ViEmu enabled), you get the same behavior.<br />Visual Studio doesn&#039;t have a line selection exactly the way Vim does, so the ViEmu visual line range when the &#039;use VS selection for Visual Mode&#039; setting is active is an approximation to Vim behavior within the limits of VS selection.<br />To achieve the behavior you want, you&#039;ll need to enter visual mode in character mode, not line mode, and select up to the end of the doSomethingElse line. With that selection made, the VS surround-with command will do what you need.<br />Another possibility is to work with Vi default visual range (not set the &#039;use VS selection for Visual Mode&#039;) and when you need to apply a VS command that works on a selection, use gS to turn the visual range into VS selecion prior to executing the VS command. This way you can use the visual line mode to select the two lines you want to surround.<br />I hope that helps...</p><p>-- Isaac</p>]]></description>
			<author><![CDATA[dummy@example.com (Isaac_Symnum)]]></author>
			<pubDate>Fri, 03 Dec 2010 10:59:48 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=6711#p6711</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem with ViEmu selection]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=6704#p6704</link>
			<description><![CDATA[<p>VS2010, Win 7 Pro x64<br />ViEmu 2.5.11</p><p>When I select lines and use VS&#039;s surround-with command, the formatting is broken.</p><p>For example:</p><p>void main()<br />{<br />&nbsp; &nbsp; int a;<br />&nbsp; &nbsp; int b;</p><p>&nbsp; &nbsp; doSomething();<br />&nbsp; &nbsp; doSomethingElse();<br />&nbsp; &nbsp; bye();<br />}<br />Put cursor on the line with doSomething(), go down one line, use the chord Ctrl-K, Ctrl-S, select #if.&nbsp; Here&#039;s the result:<br />#if true<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;doSomething();<br />&nbsp; &nbsp; doSomethingElse();<br />&nbsp; <br />&nbsp; &nbsp; #endif&nbsp; &nbsp; bye();</p><p>Is there anyway to improve this -- line selection -- so the two do... lines are surrounded?</p>]]></description>
			<author><![CDATA[dummy@example.com (Number8)]]></author>
			<pubDate>Thu, 02 Dec 2010 17:19:44 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=6704#p6704</guid>
		</item>
	</channel>
</rss>
