1
<?xml version="1.0" encoding="utf-8"?>
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="language-support-cpp-modelines-vim" xml:lang="ro">
4
<info xmlns:facet="http://projectmallard.org/facet/1.0/">
5
<facet:tag key="all-pages" value="whatever"/> <!--Include page in index-->
6
<link type="guide" xref="anjuta-code-indentation#editor-modelines"/>
7
<revision pkgversion="3.0" version="0.1" date="2011-03-27" status="incomplete"/>
9
Supported Vim modelines features.
11
<credit type="author">
12
<name>Sébastien Granjoux</name>
13
<email>seb.sfo@free.fr</email>
17
<title>Vim modelines</title>
19
<p>This modeline is a comment in the first line of the file which
20
has to start with <code>vim:</code> followed by at least one space and
21
a list of variable names with an optional value after <code>=</code>
22
separated by space or <code>:</code>.</p>
24
<p>A typical <app>Vim</app> modeline looks like this:</p>
27
/* vim: set noet ts=4 sw=4: */</code>
29
<p>Anjuta support only the following variables.</p>
33
<title><code>expandtab</code></title>
34
<title><code>et</code></title>
35
<p>Use spaces for indentation.</p>
38
<title><code>noexpandtab</code></title>
39
<title><code>noet</code></title>
40
<p>Use tabulation for indentation.</p>
43
<title><code>softtabstop</code></title>
44
<title><code>sts</code></title>
45
<title><code>tabstop</code></title>
46
<title><code>ts</code></title>
47
<p>Number of space characters corresponding to one tabulation character.</p>
50
<title><code>shiftwidth</code></title>
51
<title><code>sw</code></title>
52
<p>Number of space characters used to indent C code.</p>