<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>vim/dot.vim/autoload/smartchr.vim</filename>
    </added>
    <added>
      <filename>vim/dot.vim/doc/smartchr.txt</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -115,6 +115,7 @@ GROUP_VIM_FILES=\
   $(PACKAGE_vim_ku_FILES) \
   $(PACKAGE_vim_narrow_FILES) \
   $(PACKAGE_vim_scratch_FILES) \
+  $(PACKAGE_vim_smartchr_FILES) \
   $(PACKAGE_vim_surround_FILES) \
   $(PACKAGE_vim_textobj_datetime_FILES) \
   $(PACKAGE_vim_textobj_fold_FILES) \
@@ -156,6 +157,7 @@ ALL_PACKAGES=\
   vim-ku \
   vim-narrow \
   vim-scratch \
+  vim-smartchr \
   vim-textobj-datetime \
   vim-textobj-fold \
   vim-textobj-jabraces \
@@ -225,6 +227,12 @@ PACKAGE_vim_scratch_FILES=\
   vim/dot.vim/doc/scratch.txt \
   vim/dot.vim/plugin/scratch.vim
 
+PACKAGE_vim_smartchr_ARCHIVE=vim-smartchr-0.0.0
+PACKAGE_vim_smartchr_BASE=vim/dot.vim
+PACKAGE_vim_smartchr_FILES=\
+  vim/dot.vim/autoload/smartchr.vim \
+  vim/dot.vim/doc/smartchr.txt
+
 PACKAGE_vim_surround_ARCHIVE=vim-surround-1.34.6
 PACKAGE_vim_surround_BASE=vim/dot.vim
 PACKAGE_vim_surround_FILES=\</diff>
      <filename>Makefile</filename>
    </modified>
    <modified>
      <diff>@@ -1073,38 +1073,6 @@ function! s:first_line(file)
 endfunction
 
 
-function! s:smart_char(...)
-  &quot; Support function to insert one of the given arguments like
-  &quot; ess-smart-underscore of Emacs Speaks Statistics.
-  &quot;
-  &quot; For example, the following setting emulates ess-smart-underscore:
-  &quot;
-  &quot;   inoremap &lt;expr&gt; _  &lt;SID&gt;smart_char(' &lt;- ', '_')
-  &quot;
-  &quot; With the above setting, when user types &quot;_&quot; key, &quot; &lt;- &quot; is inserted for
-  &quot; the first time.  When user types &quot;_&quot; key again, the previously inserted
-  &quot; &quot; &lt;- &quot; is replaced by &quot;_&quot;.
-  &quot;
-  &quot; More generally, this function returns the key sequence to:
-  &quot; - Insert a:1 for the first time.
-  &quot; - Delete a:1 then insert a:2 for the second time.
-  &quot; - Delete a:{N-1} then insert a:{N} for the Nth time.
-
-  for i in range(len(a:000) - 1, 1, -1)
-    let literal1 = a:000[i]
-    let literal2 = a:000[i-1]
-
-    if search('\V' . escape(literal2, '\') . '\%#', 'bcn')
-      return (pumvisible() ? &quot;\&lt;C-e&gt;&quot; : '')
-           \ . repeat(&quot;\&lt;BS&gt;&quot;, len(literal2))
-           \ . literal1
-    endif
-  endfor
-
-  return a:1
-endfunction
-
-
 
 
 </diff>
      <filename>vim/dot.vimrc</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dae9e2a1ec376a74bc13fdb5c991e01e6cbcdb86</id>
    </parent>
  </parents>
  <author>
    <name>kana</name>
    <email>nicht@s8.xrea.com</email>
  </author>
  <url>http://github.com/kana/config/commit/1e1429b2af329f1fb36528a86c3bb47438ba5b8e</url>
  <id>1e1429b2af329f1fb36528a86c3bb47438ba5b8e</id>
  <committed-date>2008-07-10T19:55:51-07:00</committed-date>
  <authored-date>2008-07-10T19:55:51-07:00</authored-date>
  <message>vim: smartchr: New, version 0.0.0

Separate s:smart_char() in vimrc as a plugin.</message>
  <tree>313732447ca5b7d20a048e995f9d6d22f21cb51b</tree>
  <committer>
    <name>kana</name>
    <email>nicht@s8.xrea.com</email>
  </committer>
</commit>
