<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/css" href="http://www.jerri.de/blog/"?>
<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Filed under: Debian | Jerris Weblog</title>
<atom:link href="http://www.jerri.de/blog/archives/debian/index-rss.xml" rel="self" type="application/rss+xml" />
<link>http://www.jerri.de/blog</link>
<description>Alles was Jerri auf seiner Reise durch die Welt findet...</description>
<dc:language>de-de</dc:language>
<dc:creator>Jerri</dc:creator>
<dc:date>2010-05-16T23:12:31+02:00</dc:date>
<admin:generatorAgent rdf:resource="http://nanoblogger.sourceforge.net" />
<item>
<link>http://www.jerri.de/blog/archives/2006/05/23/noch_eine_vim7-_aumlnderung_bei_debian/index.html</link>
<guid isPermaLink="true">http://www.jerri.de/blog/archives/2006/05/23/noch_eine_vim7-_aumlnderung_bei_debian/index.html</guid>
<title>Noch eine vim7-Änderung bei Debian...</title>
<dc:date>2006-05-23T14:16:37+02:00</dc:date>
<dc:creator>Jerri</dc:creator>
<dc:subject>Konsole, Debian</dc:subject>
<description>
<![CDATA[<p>
Da haben die Debian-Paketverwalter mal richtig aufgeräumt bei der
vim7-Installation. Neben der Änderung von gestern, die ich offensichtlich auch
umgehen hätte können, indem ich das Paket <tt>vim-full</tt> installiert hätte,
welches den Default <tt>nano</tt> wieder überschreibt, ist vim nun auf der
Kommando-Zeile so konfiguriert, dass bei Start von vim als <tt>vi</tt> ein zu
vi kompatibles vim gestartet wird.
</p>

<p>
Dies wird dadurch bewerkstelligt, dass vim beim Aufruf als <tt>vi</tt> auch die
<tt>virc</tt>-Dateien zusätzlich liest. Bei Debian existiert nun per Default
eine Datei <tt>/etc/vim/virc</tt> mit dem folgenden Inhalt:
</p>

<pre>
&quot; Vim configuration file, in effect when invoked as &quot;vi&quot;. The aim of this
&quot; configuration file is to provide a Vim environment as compatible with the
&quot; original vi as possible. Note that ~/.vimrc configuration files as other
&quot; configuration files in the runtimepath are still sourced.
&quot; When Vim is invoked differently (&quot;vim&quot;, &quot;view&quot;, &quot;evim&quot;, ...) this file is
&quot; _not_ sourced; /etc/vim/vimrc and/or /etc/vim/gvimrc are.

set compatible

&quot; vim: set ft=vim:
</pre>

<p>
Indem man die Zeile <tt>set compatible</tt> in dieser Datei auskommentiert (mit
&quot;) erhält man mit vi wieder einen ganz normalen voll funktionsfähigen vim.
</p>

<p>
Bin gespannt, was ich noch alles ändern muss, damit ich mit den neuen
vim7-Paketen von Debian wieder auf dem alten Stand bin. :-)
</p>]]>
</description>
</item>
<item>
<link>http://www.jerri.de/blog/archives/2006/05/22/vim_not_default_anymore_on_debian/index.html</link>
<guid isPermaLink="true">http://www.jerri.de/blog/archives/2006/05/22/vim_not_default_anymore_on_debian/index.html</guid>
<title>vim not default anymore on debian...</title>
<dc:date>2006-05-22T12:39:10+02:00</dc:date>
<dc:creator>Jerri</dc:creator>
<dc:subject>Konsole, Debian</dc:subject>
<description>
<![CDATA[<p>
It seems the debian community prefers <tt>nano</tt> to <tt>vim</tt>. With the
newest unstable debian installed if you do for example <tt>cvs commit</tt> you
get the <tt>nano</tt>-Editor to edit your commit-message instead of
<tt>vi</tt>. This happens allthough <tt>$EDITOR</tt> and <tt>$CVSEDITOR</tt>
are not set.
</p>

<p>
If you don't like nano and want your beloved vi back again do the following as
root:
</p>

<pre>
$ update-alternatives --config editor
</pre>

<p>Answer the following question with your preferred editor.</p>

<p>
This sets the default-editor for the whole system. (There are more default
programs you can set with this debian command. Take a look at <tt>man
update-alternatives</tt>)
</p>

<p>
If you want to set the default-editor for your user only you alternatively can
set the <tt>$EDITOR</tt> variable in your shell configuration (<tt>.bashrc</tt>
for bash):
</p>

<pre>
export EDITOR=/usr/bin/vim
</pre>]]>
</description>
</item>
</channel>
</rss>
