forked from xiexinyls/vim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
47 lines (30 loc) · 770 Bytes
/
README.txt
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
This directory contains some useful ncl syntax, indent, and dictionary settings.
To use them, put the directory structure into your .vim directory.
Turn on the filetype plugin and syntax
by adding the following lines to your .vimrc file:
filetype plugin indent on
syntax on
To indent the current line, simply type "=="
To indent the whole ncl file, type "gg=G"
Known problem:
When you use "else if" statement like this,
if ( condition ) then
...
else if ( condition ) then
...
else if ( condition ) then
...
end if
end if
end if
the indent code may not work right. To avoid that, try the following code style
if ( condition ) then
...
else
if ( condition ) then
else
if ( condition ) then
...
end if
end if
end if