<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://stab.st-andrews.ac.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Hdi2u_S15</id>
		<title>Hdi2u S15 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://stab.st-andrews.ac.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Hdi2u_S15"/>
		<link rel="alternate" type="text/html" href="http://stab.st-andrews.ac.uk/wiki/index.php?title=Hdi2u_S15&amp;action=history"/>
		<updated>2026-06-04T11:10:47Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://stab.st-andrews.ac.uk/wiki/index.php?title=Hdi2u_S15&amp;diff=1404&amp;oldid=prev</id>
		<title>Rf: Created page with &quot;= Text editing =  * There are very many text editors, but one of the most powerful and dependable is &lt;code&gt;vi&lt;/code&gt;. * It has a steep but tiny learning curve, which we hope t...&quot;</title>
		<link rel="alternate" type="text/html" href="http://stab.st-andrews.ac.uk/wiki/index.php?title=Hdi2u_S15&amp;diff=1404&amp;oldid=prev"/>
				<updated>2017-04-19T22:35:13Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Text editing =  * There are very many text editors, but one of the most powerful and dependable is &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;. * It has a steep but tiny learning curve, which we hope t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Text editing =&lt;br /&gt;
&lt;br /&gt;
* There are very many text editors, but one of the most powerful and dependable is &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
* It has a steep but tiny learning curve, which we hope to conquer in this section.&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;vi&amp;quot; is an old version and is available on all Unix/linux systems by default&lt;br /&gt;
* Vim is the modern version, it used &amp;lt;code&amp;gt;ncurses&amp;lt;/code&amp;gt; to use the whole screen&lt;br /&gt;
* It&amp;#039;s free and has graphical version call gvim and a Windows version too.&lt;br /&gt;
&lt;br /&gt;
== Using vim ==&lt;br /&gt;
&lt;br /&gt;
* type &amp;lt;code&amp;gt;vim&amp;lt;/code&amp;gt; to get in, and &amp;lt;code&amp;gt;:q&amp;lt;/code&amp;gt; to get out without saving.&lt;br /&gt;
* &amp;lt;code&amp;gt;ZZ&amp;lt;/code&amp;gt; to save onto to current filename. &amp;quot;:sav fname&amp;quot; otherwise&lt;br /&gt;
* It opens in &amp;quot;normal&amp;quot; mode which is similar to less, in that direct editing is not expected.&lt;br /&gt;
* This is changed by pressing &amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt;. To get back to normal mode, press the &amp;lt;code&amp;gt;ESC&amp;lt;/code&amp;gt; key.&lt;br /&gt;
* In normal mode &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; undoes any changes&lt;br /&gt;
* &amp;lt;code&amp;gt;:&amp;lt;/code&amp;gt; while in normal mode allows command sto be entered&lt;br /&gt;
* Visual: enabled by &amp;quot;v&amp;quot; or &amp;quot;V&amp;quot; (visual block), sub-box at the bottom open.&lt;br /&gt;
* After v or V, movement keys &amp;quot;:%&amp;quot; will operate on whole document, &amp;quot;:’a,’b&amp;quot; operate between two marks, &amp;quot;:42,45&amp;quot; between two line numbers&lt;br /&gt;
* search via &amp;quot;/&amp;quot;, &amp;quot;:set hlsearch&amp;quot; to see all the hits&lt;/div&gt;</summary>
		<author><name>Rf</name></author>	</entry>

	</feed>