<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Tutorials</title>
	<atom:link href="http://linuxtutorials.co.uk/feed" rel="self" type="application/rss+xml" />
	<link>http://linuxtutorials.co.uk</link>
	<description>Linux Tutorials, Linux howto&#039;s and guides</description>
	<lastBuildDate>Wed, 31 Aug 2011 19:09:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to use vi</title>
		<link>http://linuxtutorials.co.uk/how-to/how-to-use-vi.html</link>
		<comments>http://linuxtutorials.co.uk/how-to/how-to-use-vi.html#comments</comments>
		<pubDate>Wed, 31 Aug 2011 19:09:53 +0000</pubDate>
		<dc:creator>linuxtut</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[how to vi]]></category>
		<category><![CDATA[linux editor]]></category>
		<category><![CDATA[text editor]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[vi editor]]></category>
		<category><![CDATA[visual editor]]></category>

		<guid isPermaLink="false">http://linuxtutorials.co.uk/?p=16</guid>
		<description><![CDATA[vi is a text based editor used on most Linux distributions and to run it you simply type viin the console. Initially you may fine vi a little confusing especially if your comparing it to desktop word processing software however &#8230; <a href="http://linuxtutorials.co.uk/how-to/how-to-use-vi.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>vi</strong> is a text based editor used on most Linux distributions and to run it you simply type viin the console. Initially you may fine vi a little confusing especially if your comparing it to desktop word processing software however after a little time you will grow to find it quick, simple and very efficient to use.</p>
<p>vi (pronounced vee eye) stands for &#8216;vi&#8217;sual editor it shows you’re the file you are editing but its&#8217; important to remember that’s vi is a text editor and not a WYSIWYG editor like Microsoft word or openoffice writer. As it&#8217;s just for editing text it has all the functions you would expect such as insert, edit, delete but leaves our common formatting such as justification and indentation.</p>
<p>This howto vi gives you a simple overview of the following:</p>
<ul>
<li>Creating a new file</li>
<li>Opening and closing a file</li>
<li>Moving around in a file</li>
<li>Baisc editing</li>
</ul>
<p>Creating a new file with vi</p>
<p>To create a new file in vi is simple, let’s say you’re in your user&#8217;s home folder (/home/user/) simply type the follwoing at the consile:</p>
<p><em>vi newfile</em></p>
<p>You are now editing the file /home/user/newile simple isn&#8217;t it <img src='http://linuxtutorials.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Also if you wanted to create a file in a different location simply give vi the path:</p>
<p><em>vi /path/to/newfile</em></p>
<p>To open an exsisting file:</p>
<p><em>vi filename</em></p>
<p>And again if you are not in the directory where the file is located then simply include the path to the fileL:</p>
<p><em>vi /path/to/filename</em></p>
<p>ok lets now look at using vi, create a new file called &#8220;howtovi&#8221;:</p>
<p><em>vi howtovi</em></p>
<p>Now you will see a blank file with blank lines, each will have a tilde (~) on the left, and status line is displayed at the bottom of the new file:</p>
<p>~<br />
~<br />
~<br />
~<br />
&#8220;howtovi&#8221; [New file]</p>
<p>vi Modes</p>
<p>vi has two modes &#8211; command mode &amp; insert mode</p>
<p>Command mode<br />
The letters of the keyboard perform editing functions &#8211; To enter command mode press the key.</p>
<p>Insert mode<br />
The letters you type display on the screen as letters and words.</p>
<p>How to Enter Text</p>
<p>To add soem text in the new file &#8220;howtovi&#8221; you will need to enter insert mode forst of all so pess the &#8220;i&#8221; key. It&#8217;s important to note that vi starts up in command mode. You will notice now that it now says &#8212; INSERT &#8212; on the status line (bottom right).</p>
<p>Now try and add some content, simply type a few lines and press enter when you want a new line.</p>
<p>more comming soon</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxtutorials.co.uk/how-to/how-to-use-vi.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

