aboutsummaryrefslogtreecommitdiff
path: root/README.mkd
blob: 9364d0c7dc7e910b88d38e56f9e46b62c3b6c4f7 (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
templete-vim
============

template chooser for vim

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>`