<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[ViEmu Forums - Visual block and indentation]]></title>
		<link>http://www.viemu.com/forum/viewtopic.php?id=622</link>
		<description><![CDATA[The most recent posts in Visual block and indentation.]]></description>
		<lastBuildDate>Sun, 03 Apr 2011 10:17:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Visual block and indentation]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=8544#p8544</link>
			<description><![CDATA[<p>Thanks again for the suggestions, Eric.</p>]]></description>
			<author><![CDATA[dummy@example.com (Oshima_Symnum)]]></author>
			<pubDate>Sun, 03 Apr 2011 10:17:19 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=8544#p8544</guid>
		</item>
		<item>
			<title><![CDATA[Re: Visual block and indentation]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=8542#p8542</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>I would advice you to use the vim-natural way of doing this, which I call &quot;column-multi-input&quot;</p></blockquote></div><p>I wouldn&#039;t really call this &quot;natural&quot;, because it requires extra keystrokes, but it works.</p><p>However, it doesn&#039;t address block <em>unindent</em>, which is the more useful feature. I use this all the time. Let&#039;s say I had the following text, and I wanted to line up the word &#039;text&#039;:<br /></p><div class="codebox"><pre><code>   this text
   have the word text in various
   positions, in all it&#039;s text glory</code></pre></div><p>I can use a quick&quot;:s&quot; to insert some space before the word &quot;text&quot; resulting in:<br /></p><div class="codebox"><pre><code>   this                         text
   have the word                         text in various
   positions, in all it&#039;s                         text glory</code></pre></div><p>Now (in Vim) I can just draw a vertical column where I want them to line up, hit &lt;, then tap . a few times. Resulting in a neat column:<br /></p><div class="codebox"><pre><code>   this                    text
   have the word           text in various
   positions, in all it&#039;s  text glory</code></pre></div><p>This feature (block indent/unindent) and the lack of <a href="http://www.viemu.com/forum/viewtopic.php?id=773">virtual selection</a> are two of the main reasons I&#039;m forced to shell out to Vim from within ViEmu.</p><p>Virtual selection allows one to <em>originate</em> columns like my example above. If you extend a column selection past the end of some lines with virtual selection enabled, it squares-off the end of the selection. You then press A and append a nice, neat column, regardless of how uniform the lines you&#039;re appending to are.</p><p>To me, these kind of actions -- sophisticated text manipulation -- are the heart of what make Vim useful. I&#039;d love to see them more accurately supported in ViEmu some day.</p>]]></description>
			<author><![CDATA[dummy@example.com (Eric Tetz)]]></author>
			<pubDate>Sun, 03 Apr 2011 01:04:51 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=8542#p8542</guid>
		</item>
		<item>
			<title><![CDATA[Re: Visual block and indentation]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=2321#p2321</link>
			<description><![CDATA[<p>I seem to remember implementing &gt; and &lt; over block regions the same as for other types of regions, by indenting full lines. I also seem to remember that I did it this way because vim worked like that for me. But I just checked and you are right, gvim works the way you say!</p><p>I think it must be another case of &quot;the default config of gvim on windows&quot; being different from the default on other systems (as Ctrl-V pasting instead of going to block-visual mode). I turned all Windows-specific features some time ago, and that&#039;s probably why it now works like you say for me.</p><p>I&#039;m taking note of this request, it&#039;s not trivial (like the % issue) and I have to prioritize other things ahead of this. Anyway, I would advice you to use the vim-natural way of doing this, which I call &quot;column-multi-input&quot;, and which ViEmu fully implements:</p><p>If you block-select the column after &#039;mdbl&#039; in the first example (the one containing MMLTA, the first letter each of the proper variable names after the hungarian prefix), and press &#039;I&#039;, you will go to a special insert mode. You can type &#039;Data&#039; here, and when you press ESC, this will be replicated on the other lines.</p><p>You can also use s and A for this purpose - &#039;s&#039; will substitute what is selected, and A will append. If you do &lt;ctrl-v&gt;jjjjj&nbsp; &nbsp; to select a few lines, then A and type something, what you append will be copied to the end of all lines (not lined up, but to the end of each line), which is pretty useful too. And as a subtle case, I and A also difer in that I will skip lines which contain no characters where the block is (such as empty lines), while A will autocomplete with spaces.</p>]]></description>
			<author><![CDATA[dummy@example.com (Jon_Symnum)]]></author>
			<pubDate>Wed, 04 Mar 2009 13:06:03 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=2321#p2321</guid>
		</item>
		<item>
			<title><![CDATA[Re: Visual block and indentation]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=2318#p2318</link>
			<description><![CDATA[<p>Good day</p><p>I have a little bit of a trickier enhancement / compatibility request...</p><p>If you have a block of text and you visual block select on a part of the text at a point not at the beginning of the line, eg, in the text below, visual block selecting the &quot;ll&quot;&#039;s in &quot;hello&quot;:</p><p>hello world<br />hello world<br />hello world</p><p>and then indent (or outdent), using &quot;&gt;&quot; (or &quot;&lt;&quot; respectively), then vim will indent / outdent the text to the right of the start of the selection block, resulting in (with the above text and the case of an indent):</p><p>he&nbsp; llo world<br />he&nbsp; llo world<br />he&nbsp; llo world</p><p>Outdenting after selecting the &quot;ll&quot; column again will close the gap, but, of course, not allow further outdenting past that since to do so would result in the &quot;ll&quot; column overwriting something to the left of it.</p><p>I would REALLY appreciate the inclusion of this compatibility feature because it&#039;s really useful to use block select to do something like convert:</p><p>&nbsp; &nbsp; double mdblMinY;<br />&nbsp; &nbsp; double mdblMaxY;<br />&nbsp; &nbsp; double mdblLatestY;<br />&nbsp; &nbsp; double mdblTotalY;<br />&nbsp; &nbsp; double mdblAverageY;</p><p>to</p><p>&nbsp; &nbsp; double mdblDataMinY;<br />&nbsp; &nbsp; double mdblDataMaxY;<br />&nbsp; &nbsp; double mdblDataLatestY;<br />&nbsp; &nbsp; double mdblDataTotalY;<br />&nbsp; &nbsp; double mdblDataAverageY;</p><p>by first indenting from after the &quot;mdbl&quot; parts and then using visual block select and &#039;s&#039; to replace the blank column with &quot;Data&quot;. I don&#039;t know if there&#039;s a better way to do this in vim -- this is just the way that I&#039;m used to doing it and it&#039;s not an uncommon thing for me to do with my text.</p>]]></description>
			<author><![CDATA[dummy@example.com (davydm)]]></author>
			<pubDate>Wed, 04 Mar 2009 09:54:17 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=2318#p2318</guid>
		</item>
	</channel>
</rss>
