aboutsummaryrefslogtreecommitdiff
path: root/README.mkd
blob: 10c351e4d8c084a7136f45d738ec1aa2600b0ee5 (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
sonictemplete-vim
=================

Easy and high speed coding method.

Usage:
------

Open new file

```sh
vim foo.pl
```

```vim
:Template <tab>
```

Then you can select `package` or `script` for perl filetype.

```vim
:Template package
:Template script
```

Type `<enter>` in `script`, you can see following.

```perl
use strict;
use warnings
use utf8;

_
```

And cursor is in `_`. If you open `lib/Foo.pm`, and type `<enter>` in `package`.  You get following.

```perl
package Foo;
use strict;
use warnings
use utf8;

_

1
```


If you open C++ file, you can select `main` for C.

Author:
-------

Yasuhiro Matsumoto `<mattn.jp@gmail.com>`