Differences between version 5 and predecessor to the previous major change of .vimrc.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 5 | Last edited on Sunday, September 7, 2003 9:45:06 am | by AristotlePagaltzis | Revert |
Older page: | version 4 | Last edited on Saturday, September 6, 2003 2:18:06 pm | by CraigBox | Revert |
@@ -1,17 +1,12 @@
-.vimrc is the file that is
executed by default by
the text
editor Vim upon startup
. It
is generally
a good idea to put a .vimrc in your home directory with
some useful setting in it
.
+[
.vimrc] contains [Vim] commands
executed upon startup and allows you to tweak
the editor's behaviour in a myriad of ways
. Here
is a minimal collection of
some sensible non-default settings
.
-There are a whole host of useful settings, but a few common ones follow:
-
-
set nocompatible " Make Vim behave less like
vi and more like Vim
- this makes vim a lot easier to user
- syntax on " Syntax highlight whatever language you are editing, Vim supports many languages
+
set nocompatible " allow breaking vanilla
vi compatibility
- required for adv. features
set incsearch " Enable incremental searching by default
set showmatch " Highlight the matches of the last search
set backspace=2 " allow backspacing over everything in insert mode
set autoindent " always set autoindenting on
set textwidth=0 " Don't wrap words by default
- " Vim5
comes with syntaxhighlighting. The next lines turn
it on
+ " Vim 5+
comes with syntax highlighting for many languages, enable
it if available
if has("syntax")
syntax on
endif
-
-vimrc is also capable of on-the-fly [gzip] and bzip2 (de)compression.