aboutsummaryrefslogtreecommitdiffstats
path: root/function-template.js
diff options
context:
space:
mode:
authoranekos2011-04-10 23:42:28 +0900
committeranekos2011-04-10 23:42:28 +0900
commit3c332e8e02644c135398808f262706f4b3bc04ef (patch)
treee28f277c20d44618a0eb37ddc0a56e09e229ddd1 /function-template.js
parent90c1aad02f75292fdc16c889e0e6278c687597a6 (diff)
downloadvimperator-plugins-3c332e8e02644c135398808f262706f4b3bc04ef.tar.bz2
見出しっぽいの付けた
Diffstat (limited to 'function-template.js')
-rw-r--r--function-template.js27
1 files changed, 23 insertions, 4 deletions
diff --git a/function-template.js b/function-template.js
index 81ce342..f790f72 100644
--- a/function-template.js
+++ b/function-template.js
@@ -1,5 +1,5 @@
/* NEW BSD LICENSE {{{
-Copyright (c) 2009, anekos.
+Copyright (c) 2009-2011, anekos.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
@@ -39,13 +39,12 @@ let PLUGIN_INFO =
<name lang="ja">関数テンプレート</name>
<description>function Template</description>
<description lang="ja">Vimperator の関数のテンプレート</description>
- <version>1.2.1</version>
+ <version>1.3.0</version>
<author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author>
<license>new BSD License (Please read the source code comments of this plugin)</license>
<license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license>
<updateURL>https://github.com/vimpr/vimperator-plugins/raw/master/function-template.js</updateURL>
- <minVersion>2.3</minVersion>
- <maxVersion>2.3</maxVersion>
+ <minVersion>3.0</minVersion>
<detail><![CDATA[
Functions template
(Fix|Add) me!
@@ -62,6 +61,10 @@ let PLUGIN_INFO =
return;
+ /********************************************************************************
+ * ユーザコマンド定義
+ ********************************************************************************/
+
commands.addUserCommand(
['myco[mmand]'],
'Description',
@@ -98,6 +101,10 @@ let PLUGIN_INFO =
);
+ /********************************************************************************
+ * オプションの定義
+ ********************************************************************************/
+
options.add(
['names'],
'description',
@@ -124,6 +131,10 @@ let PLUGIN_INFO =
);
+ /********************************************************************************
+ * ヒント定義
+ ********************************************************************************/
+
hints.addMode(
'm', // mode char
'description',
@@ -133,6 +144,10 @@ let PLUGIN_INFO =
);
+ /********************************************************************************
+ * マッピング定義
+ ********************************************************************************/
+
mappings.addUserMap(
[modes.NORMAL, modes.INSERT, modes.COMMAND_LINE, modes.VISUAL],
['`moge'],
@@ -152,6 +167,10 @@ let PLUGIN_INFO =
);
+ /********************************************************************************
+ * オートコマンド (各イベント発生時に自動的に呼ばれます)
+ ********************************************************************************/
+
autocommands.add(
'LocationChange',
'.*',