<?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>vi &#8211; VeriTeknik</title>
	<atom:link href="https://www.veriteknik.net.tr/en/tag/vi/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.veriteknik.net.tr/en/</link>
	<description>VeriTeknik Bilişim &#124; VeriTeknik Bilişim</description>
	<lastBuildDate>Tue, 26 Jun 2012 14:02:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Some Tips for VIM Users</title>
		<link>https://www.veriteknik.net.tr/en/some-tips-for-vim-users/</link>
					<comments>https://www.veriteknik.net.tr/en/some-tips-for-vim-users/#respond</comments>
		
		<dc:creator><![CDATA[Mustafa Emre Aydın]]></dc:creator>
		<pubDate>Tue, 26 Jun 2012 14:02:50 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[vim]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=583</guid>

					<description><![CDATA[<p>VIM, one of the best text editors of all time, has a lot of useful options which are usually hidden. To get the best out of this text editor, I&#8217;d recommend checking some of these features out. To get these settings enabled by default, add the lines to your vimrc file, it is usually located [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/some-tips-for-vim-users/">Some Tips for VIM Users</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>VIM, one of the best text editors of all time, has a lot of useful options which are usually hidden. To get the best out of this text editor, I&#8217;d recommend checking some of these features out.</p>
<p>To get these settings enabled by default, add the lines to your vimrc file, it is usually located at <strong>~/.vimrc</strong> if not, just create it. Below is a part of the .vimrc file I like using.</p>
<pre class="brush: text; gutter: true; first-line: 1">"set tabwidth to 4 characters, automatic indentation and stuff
set tabstop=4 shiftwidth=4
set expandtab
set smarttab
set autoindent
set smartindent

"set searching case insensitive, but if you type uppercase, it will go case sensitive
set ignorecase
set smartcase

"2 lines above/below cursor when scrolling
set scrolloff=2

"show filename in title bar
set title

"show line numbers, and toggle it on/off with F2
set number
map &lt;F2&gt; :set invnumber&lt;CR&gt;

"toggle wrapping mode with Ctrl+w
map &lt;C-w&gt; :set invwrap&lt;CR&gt;

"Reload Current File, ask for confirmation if changed
map &lt;F5&gt; :confirm :edit&lt;CR&gt;

"automatically cd into the directory that the file is in, very useful when running commands within vi
autocmd BufEnter * execute "chdir ".escape(expand("%:p:h"), ' ')

"highlight the current line, when you split screen, it will only highlight the line that has focus on
hi CursorLine cterm=NONE ctermbg=blue ctermfg=NONE
autocmd WinEnter * setlocal cursorline
autocmd WinLeave * setlocal nocursorline
set cursorline

"set encoding to utf-8
set encoding=utf-8

"highlight search results
set hlsearch
"search while typing
set incsearch</pre>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/some-tips-for-vim-users/">Some Tips for VIM Users</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/some-tips-for-vim-users/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">583</post-id>	</item>
		<item>
		<title>Using vi Editor</title>
		<link>https://www.veriteknik.net.tr/en/using-vi-editor/</link>
					<comments>https://www.veriteknik.net.tr/en/using-vi-editor/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Wed, 27 Apr 2011 13:20:08 +0000</pubDate>
				<category><![CDATA[LINUX Help]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[vim]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=117</guid>

					<description><![CDATA[<p>Vi is the one of the mostly used editor in Linux via terminal. In most cases where Linux is used as a server operating system, admins use the terminal, where GUI uses more system resources &#38; network bandwidth. Since Vi is used from the terminal, the lack of GUI force the user to learn function [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/using-vi-editor/">Using vi Editor</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><strong>Vi</strong> is the one of the mostly used editor in Linux via terminal. In most cases where Linux is used as a server operating system, admins use the terminal, where GUI uses more system resources &amp; network bandwidth. Since Vi is used from the terminal, the lack of GUI force the user to learn function keys of the editor. Vi is a powerful and functional application if it is used with the ideas that is built on.</div>
<p>To run vi, type vi from the terminal, vi is installed on most of the Linux distros as default. You may also you the improved version called &#8220;Vim&#8221; if you are developing codes or scripts. If you don&#8217;t have vim installed just run the command to install &#8220;<strong>yum install vim-enhanced -y</strong>&#8220;.</p>
<p>To create a new file just write the name of the file after the command as follows:</p>
<div>vi /root/newfile.txt</div>
<p>For more functionality Vi is designed to work in three modes described below:</p>
<ol>
<li><strong>Command Mode</strong></li>
<li><strong>Edit (editing + adding) Mode</strong></li>
<li><strong>Command Line Mode<br />
</strong></li>
</ol>
<p>Vi starts in Command mode, thus you cannot directly start typing or editing the lines inside the editor. You can always return to command mode by pressing ESC button anytime. To switch to Editing mode while you are in command mode press &#8220;ESC&#8221; and type &#8220;:&#8221; or press &#8220;Insert&#8221; button on your keyboard.</p>
<p>Below are the mostly used functions in <strong>Command Mode:</strong>:</p>
<table class="alignleft" border="1" cellspacing="5" cellpadding="5">
<tbody>
<tr>
<td><strong>Command</strong></td>
<td style="text-align: left;"><strong>Action</strong></td>
</tr>
<tr>
<td>i</td>
<td style="text-align: left;">Switches to Insert (edit) Mode</td>
</tr>
<tr>
<td>a</td>
<td style="text-align: left;">Switches edit mode at the end of cursor</td>
</tr>
<tr>
<td>A</td>
<td style="text-align: left;">Switches edit mode at the end of current line</td>
</tr>
<tr>
<td>ESC</td>
<td style="text-align: left;">Closes edit mode and switches to Command Mode</td>
</tr>
<tr>
<td>u</td>
<td style="text-align: left;">Undo</td>
</tr>
<tr>
<td>U</td>
<td style="text-align: left;">Undo all</td>
</tr>
<tr>
<td>o</td>
<td style="text-align: left;">Insert new line</td>
</tr>
<tr>
<td>dd</td>
<td style="text-align: left;">Delete whole line</td>
</tr>
<tr>
<td>/string</td>
<td style="text-align: left;">makes search for the &#8220;string&#8221;</td>
</tr>
<tr>
<td>n</td>
<td style="text-align: left;">Search next item</td>
</tr>
</tbody>
</table>
<p>To switch to<strong> Command Line </strong>mode press <strong>ESC</strong> and type <strong>&#8220;:&#8221;</strong> without quotes. Below are the commands that you can use in <strong>command line mode</strong>:</p>
<table class="alignleft" border="1" cellspacing="5" cellpadding="5" align="left">
<tbody>
<tr>
<td><strong>Command</strong></td>
<td style="text-align: left;"><strong>Action</strong></td>
</tr>
<tr>
<td>ZZ</td>
<td style="text-align: left;">Saves the current file and exits or</td>
</tr>
<tr>
<td>wq</td>
<td style="text-align: left;">w for saving, q to exit</td>
</tr>
<tr>
<td>w!</td>
<td style="text-align: left;">saves read-only files (force)</td>
</tr>
<tr>
<td>q!</td>
<td style="text-align: left;">Quit without saving</td>
</tr>
<tr>
<td>q</td>
<td style="text-align: left;">Quit</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/using-vi-editor/">Using vi Editor</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/using-vi-editor/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">117</post-id>	</item>
	</channel>
</rss>
