summaryrefslogtreecommitdiff
path: root/htdocs/vim5users.php
blob: 94da86e6eb85320f0e5b81f7bf0701a3c6757fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?php
// for Vim 5 users
require_once("include/init.inc");
$page_title = "for Vim 5 users";

include("header.php");
?>
<h1>if you're using Vim 5</h1>
<p>
A huge number of new features have been added in Vim 6.  A few major ones
will be mentioned here.  There are also a lot of minor improvements,
details matter to the Vim developers.
</p>

<p>
The full list of new features can be found in the
<a href='http://vimdoc.sourceforge.net/cgi-bin/vim2html2.pl?page=version6.txt#version6.txt'>official documentation</a>.
</p>

<ul>
  <li>
  Vertically Split Windows
  <p>
  Windows can now be split vertically.  This provides great flexibility for
  displaying files in Vim.  The example below shows the file explorer
  in the left window and an edited file in the right window.  Double
  clicking on a file name in the file explorer edits that file in the
  right window.  Double clicking on a directory name moves to that
  directory.  You can have many splits at once, and edit files in
  each of them.
  </p>
  <img src="<?=$IMAGES?>/vertsplit.png" width="602" height="355" alt="vertically split windows" />
  <p>
  </li>

  <li>
  Vimdiff
  <p>
  Edit two (or three or four) files and Vim will show the differences.
  Inserted and changed lines are highlighted.  Ranges of lines without
  changes are folded away.  This way you can quickly see what changed.  There
  are commands to remove the differences.
  </p>
  <img src="<?=$IMAGES?>/vimdiff.png" width="602" height="430" alt="vimdiff" />
  <p>
  </li>


  <li>
  Folding
  <p>
  A range of lines can be hidden, and one line displayed instead.  This gives
  a quick overview of what a file contains.  In the example below there is a
  fold for each C function.  Most of them are closed and only show the name
  of the function.  A fold can be opened by clicking on the + in the column
  on the left.
  </p>

  <p>
  There are several ways of folding: with markers in the file, based on
  indenting, manually or defined with an expression.  This provides
  convenient folding for many different purposes.
  </p>
  <img src="<?=$IMAGES?>/folding.png" width="586" height="311" alt="folding" />
  <p>
  </li>

  <li>
  User Manual
  <p>
  With so many new features the documentation had to be enhanced to make it
  easier to learn using Vim.  The user manual was written in such a way that
  you can start using Vim or learn to use a specific feature.  There are lots
  of examples to make it easier to read and understand.  Parts of the book
  <a href="http://iccf-holland.org/click5.html">Vi Improved - Vim</A> by Steve
  Oualline were used.  The user manual, like the book, is published under the
  Open Publication License.
  <p>

  <p>
  You can find the
  <a href='http://vimdoc.sourceforge.net/cgi-bin/vim2html2.pl?page=usr_toc.txt#usr_toc.txt'>User Manual</a>, along with other documentation, at
  <a href='http://vimdoc.sf.net/'>VimDoc</a>.
  </p>
  </li>

  <li>
  Plugins
  <p>
  Since Vim scripting has become quite powerful, many users have started
  writing scripts.  The new plugin feature makes it easy to start using such
  a script: Just drop it in the right directory.
  </p>

  <p>
  There are several types of plugins.  Global plugins are used to add
  commands for all situations.  The file explorer, mentioned in the example
  for vertical splits above, is actually implemented as a global plugin.
  </p>

  <p>
  Filetype plugins are used to do settings for a specific type of file.  For
  example, the C filetype plugin sets the 'cindent' option; the "man" plugin
  sets up mappings to be able to jump to another manual page.
  </p>

  <p>
  A number of plugins are included in the distribution.  The system
  administrator can add plugins for all users.  And you can add your own
  personal plugins.  The <a href="scripts.php">script repository</a>
  provides a central place to share plugins.
  </p>
  </li>

  <li>
  Flexible Indenting
  <p>
  Automatic indenting is now available for many languages.  Several are
  included with the distribution.  Just like with syntax highlighting, the
  indenting is defined in a Vim script.  This allows you to add indenting for
  the language you are editing.  You are invited to make your scripts
  available to be included in the Vim distribution.
  </p>
  </li>

  <li>
  Unicode
  <p>
  There are many languages in the world, and many ways to encode the
  characters used in them.  Unicode was designed to encode characters for all
  the languages commonly used in the world.  This allows using several
  languages in the same file.
  </p>

  <p>
  Vim supports editing Unicode in the GUI version and in terminals that
  support UTF-8.  Double-wide characters can be used, and up to two composing
  characters are supported.
  </p>

  <p>
  When reading a file, Vim can often detect how it is encoded and convert the
  text when necessary.  UTF-8 files are edited without conversion.  Other
  Unicode formats (16 bit and 32 bit) are converted internally.  Conversion
  is also used to edit files in just about any encoding, using an external
  converter.
  </p>
  <img src="<?=$IMAGES?>/unicode.png" width="602" height="362" alt="Editing Unicode" />
  </li>
</ul>
<?php
$google_ads = "normal";
include("footer.php");
?>