Skip to content

Instantly share code, notes, and snippets.

@kosugi
Created November 28, 2013 04:55
Show Gist options
  • Select an option

  • Save kosugi/7687406 to your computer and use it in GitHub Desktop.

Select an option

Save kosugi/7687406 to your computer and use it in GitHub Desktop.
skk.vim
diff --git a/plugin/skk.vim b/plugin/skk.vim
index 24bd4df..4cc9053 100644
--- a/plugin/skk.vim
+++ b/plugin/skk.vim
@@ -1220,10 +1221,6 @@ if !exists("skk_rom_kana_rules")
\. "zyo じょ ジョ\<NL>"
\. "zyu じゅ ジュ\<NL>"
\. "- ー\<NL>"
- \. ": :\<NL>"
- \. "; ;\<NL>"
- \. "! !\<NL>"
- \. "? ?\<NL>"
\. "[ 「\<NL>"
\. "] 」\<NL>"
endif
diff --git a/plugin/skk.vim b/plugin/skk.vim
index 24bd4df..4cc9053 100644
--- a/plugin/skk.vim
+++ b/plugin/skk.vim
@@ -152,11 +152,11 @@ if !exists("skk_kutouten_type")
endif
if !exists("skk_kutouten_jp")
- let skk_kutouten_jp = "。、"
+ let skk_kutouten_jp = ["。", "、"]
endif
if !exists("skk_kutouten_en")
- let skk_kutouten_en = ".,"
+ let skk_kutouten_en = [".", ","]
endif
if !exists("skk_use_numeric_conversion")
@@ -2681,13 +2678,13 @@ endfunction
function! SkkCurrentKuten(kana)
let b:skk_rstart = 0
- let kuten = matchstr(g:skk_kutouten_{g:skk_kutouten_type}, "^.")
+ let kuten = g:skk_kutouten_{g:skk_kutouten_type}[0]
return a:kana . kuten
endfunction
function! SkkCurrentTouten(kana)
let b:skk_rstart = 0
- let touten = matchstr(g:skk_kutouten_{g:skk_kutouten_type}, ".$")
+ let touten = g:skk_kutouten_{g:skk_kutouten_type}[1]
return a:kana . touten
endfunction
" }}}
diff --git a/plugin/skk.vim b/plugin/skk.vim
index 24bd4df..4cc9053 100644
--- a/plugin/skk.vim
+++ b/plugin/skk.vim
@@ -1212,6 +1212,7 @@ if !exists("skk_rom_kana_rules")
\. "zj ↓\<NL>"
\. "zk ↑\<NL>"
\. "zl →\<NL>"
+ \. "z  \<NL>"
\. "zo ぞ ゾ\<NL>"
\. "zu ず ズ\<NL>"
\. "zya じゃ ジャ\<NL>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment