<?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>c program &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/c-program/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Mon, 30 May 2011 02:37:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.3</generator>
	<item>
		<title>How To Display vi / vim Text Editor Line Numbers</title>
		<link>https://lifelinux.com/how-to-display-vi-vim-text-editor-line-numbers/</link>
					<comments>https://lifelinux.com/how-to-display-vi-vim-text-editor-line-numbers/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Mon, 30 May 2011 02:14:50 +0000</pubDate>
				<category><![CDATA[Bash Shell]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[c program]]></category>
		<category><![CDATA[display vi line nymber]]></category>
		<category><![CDATA[line numbers]]></category>
		<category><![CDATA[readability]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[Show Line Numbers In vi]]></category>
		<category><![CDATA[Show Line Numbers In vim]]></category>
		<category><![CDATA[Vim]]></category>
		<category><![CDATA[vim off line number]]></category>
		<category><![CDATA[vim on line number]]></category>
		<category><![CDATA[vim text editor]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=857</guid>

					<description><![CDATA[<p>Displaying line numbers in vi/vim can be very useful for debugging code errors and to improve overall readability of a program. For example, if we are writing C program or Shell script and want to check coding mistakes after running or compiling it, turning on or off this feature may help a lot to identify [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-display-vi-vim-text-editor-line-numbers/">How To Display vi / vim Text Editor Line Numbers</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>Displaying line numbers in vi/vim can be very useful for debugging code errors and to improve overall readability of a program. For example, if we are writing C program or Shell script and want to check coding mistakes after running or compiling it, turning on or off this feature may help a lot to identify coding problem.<br />
<span id="more-857"></span></p>
<h3>Display line numbers in vi/vim</h3>
<p>To display line numbers along the left side of a window, type any one of the following:</p>
<pre>:set nu</pre>
<p>or</p>
<pre>:set number</pre>
<p>Sample output<br />
<a href="http://www.lifelinux.com/wp-content/uploads/2011/05/vi_show_line_numbers.png"><img class="aligncenter size-full wp-image-862" title="vi_show_line_numbers" src="http://www.lifelinux.com/wp-content/uploads/2011/05/vi_show_line_numbers.png" alt="vi_show_line_numbers" width="500" srcset="https://lifelinux.com/wp-content/uploads/2011/05/vi_show_line_numbers.png 641w, https://lifelinux.com/wp-content/uploads/2011/05/vi_show_line_numbers-300x180.png 300w" sizes="(max-width: 641px) 100vw, 641px" /></a></p>
<h3>Hide line numbers in vi/vim</h3>
<p>To turn off line number again, type the following command:</p>
<pre>
:set nu!
</pre>
<h3>Make vi/vim show line numbers by default</h3>
<p>The vimrc files contains optional runtime configuration settings to initialize vi/vim when it starts. On Unix/Linux based systems, the file is named .vimrc. To display line numbers every time you start vi/vim, append following line to your ~/.vimrc file:</p>
<pre>
set number
</pre>
<p>Save and close the file, type</p>
<pre>
:wq!
</pre>
<g:plusone href="https://lifelinux.com/how-to-display-vi-vim-text-editor-line-numbers/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-display-vi-vim-text-editor-line-numbers/">How To Display vi / vim Text Editor Line Numbers</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/how-to-display-vi-vim-text-editor-line-numbers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
