aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: afcc857bcab7a296410bf2db11ad7d2517837876 (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
# sonictemplate

Easy and high speed coding method.

## Template Completion

![](https://raw.githubusercontent.com/mattn/vim-sonictemplate/master/screenshot1.gif)

## Postfix Completion

![](https://raw.githubusercontent.com/mattn/vim-sonictemplate/master/screenshot2.gif)

## Basic 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.

## License

MIT

## Author

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