<?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>Notes from Nemo &#187; Ubuntu</title>
	<atom:link href="http://www.jamiesutherland.com/category/computing/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jamiesutherland.com</link>
	<description>Jamiesutherland.com</description>
	<lastBuildDate>Sun, 30 May 2010 21:39:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using vi and forgetting the bastarding sudo command.</title>
		<link>http://www.jamiesutherland.com/2009/05/19/ubuntu-vi-and-forgetting-the-bastarding-sudo-command/</link>
		<comments>http://www.jamiesutherland.com/2009/05/19/ubuntu-vi-and-forgetting-the-bastarding-sudo-command/#comments</comments>
		<pubDate>Tue, 19 May 2009 14:16:27 +0000</pubDate>
		<dc:creator>jsutherland</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.jamiesutherland.com/?p=39</guid>
		<description><![CDATA[OK, so how many of you have been messing about with a system file using vi and you&#8217;ve edited about 10 lines. You go to save the file and it complains that it&#8217;s Read-Only!! Gah, you then do your thing to correct it and slap yourself for making THAT mistake AGAIN.
Anyway, rant over. Fix it [...]]]></description>
			<content:encoded><![CDATA[<p>OK, so how many of you have been messing about with a system file using vi and you&#8217;ve edited about 10 lines. You go to save the file and it complains that it&#8217;s Read-Only!! Gah, you then do your thing to correct it and slap yourself for making THAT mistake AGAIN.</p>
<p>Anyway, rant over. Fix it by doing this!</p>
<blockquote><p>vi ~/.vimrc</p></blockquote>
<p>Insert this</p>
<blockquote><p>command! -bar -nargs=0 Sw :w !sudo tee % &gt;/dev/null</p></blockquote>
<p>Now when you go to save and it complains just type :Sw and it will save it out as root and then ask you to reload (If someone know how to do this part automatically it would be appreciated <img src='http://www.jamiesutherland.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> )</p>
<p>Problem solved!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamiesutherland.com/2009/05/19/ubuntu-vi-and-forgetting-the-bastarding-sudo-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
