<?xml version="1.0" encoding="iso-8859-1"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
<?xml-stylesheet type="text/css" href="http://www.jerri.de/blog/"?>
<title type="html">Filed under: Debian | Jerris Weblog</title>
<subtitle type="html">Alles was Jerri auf seiner Reise durch die Welt findet...</subtitle>
<link rel="alternate" type="text/html" href="http://www.jerri.de/blog" />
<link rel="self" type="application/atom+xml" href="http://www.jerri.de/blog/archives/debian/index-atom.xml" />
<updated>2010-05-16T23:11:54+02:00</updated>
<author>
<name>Jerri</name>
<uri>http://www.jerri.de/blog</uri>
</author>
<id>http://www.jerri.de/blog/</id>
<generator uri="http://nanoblogger.sourceforge.net" version="3.4.2">NanoBlogger</generator>
<entry>
<title type="html">Noch eine vim7-Änderung bei Debian...</title>
<author>
<name>Jerri</name>
</author>
<link rel="alternate" type="text/html" href="http://www.jerri.de/blog/archives/2006/05/23/noch_eine_vim7-_aumlnderung_bei_debian/index.html" />
<id>http://www.jerri.de/blog/archives/2006/05/23/noch_eine_vim7-_aumlnderung_bei_debian/index.html</id>
<published>2006-05-23T14:16:37+02:00</published>
<updated>2006-05-23T14:16:37+02:00</updated>
<category term="Konsole" />
<category term="Debian" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<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>
" Vim configuration file, in effect when invoked as "vi". The aim of this
" configuration file is to provide a Vim environment as compatible with the
" original vi as possible. Note that ~/.vimrc configuration files as other
" configuration files in the runtimepath are still sourced.
" When Vim is invoked differently ("vim", "view", "evim", ...) this file is
" _not_ sourced; /etc/vim/vimrc and/or /etc/vim/gvimrc are.

set compatible

" vim: set ft=vim:
</pre>
<p>Indem man die Zeile 
<tt>set compatible</tt>in dieser Datei auskommentiert (mit ") 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>
</div>
</content>
</entry>
<entry>
<title type="html">vim not default anymore on debian...</title>
<author>
<name>Jerri</name>
</author>
<link rel="alternate" type="text/html" href="http://www.jerri.de/blog/archives/2006/05/22/vim_not_default_anymore_on_debian/index.html" />
<id>http://www.jerri.de/blog/archives/2006/05/22/vim_not_default_anymore_on_debian/index.html</id>
<published>2006-05-22T12:39:10+02:00</published>
<updated>2006-05-22T12:39:10+02:00</updated>
<category term="Konsole" />
<category term="Debian" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<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>
</div>
</content>
</entry>
</feed>
