<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,8 +4,12 @@
 &quot;
 &quot; * This file consists of &quot;sections&quot;.
 &quot;
+&quot;   - The name of each section should be one word.
+&quot;
 &quot; * Each section consists of zero or more &quot;subsections&quot;.
 &quot;
+&quot;   - There is no rule for the name of each subsection.
+&quot;
 &quot; * The last subsection in a section should be named as &quot;Misc.&quot;.
 &quot;
 &quot; * Whenever new subsection is inserted,
@@ -33,6 +37,11 @@
 &quot;
 &quot; * Separate {cmd} and {rep} of :command definitions with 2 spaces.
 &quot;
+&quot; * Write the full name for each command,
+&quot;   e.g., write nnoremap not nn.
+&quot;
+&quot;     - But abbreviated names may be used to follow the maximum line length.
+&quot;
 &quot; * Key Notation:
 &quot;
 &quot;   - Control-keys: Write as &lt;C-x&gt;, neither &lt;C-X&gt; nor &lt;c-x&gt;.
@@ -175,7 +184,169 @@ let maplocalleader='.'
 
 
 
-&quot; UTILITY FUNCTIONS &amp; COMMANDS &quot;{{{1
+&quot; Utilities  &quot;{{{1
+&quot; CMapABC: support input for Alternate Built-in Commands &quot;{{{2
+
+let s:CMapABC_Entries = []
+function! s:CMapABC_Add(original_pattern, alternate_name)
+  call add(s:CMapABC_Entries, [a:original_pattern, a:alternate_name])
+endfunction
+
+
+cnoremap &lt;expr&gt; &lt;Space&gt;  &lt;SID&gt;CMapABC()
+function! s:CMapABC()
+  let cmdline = getcmdline()
+  for [original_pattern, alternate_name] in s:CMapABC_Entries
+    if cmdline =~# original_pattern
+      return &quot;\&lt;C-u&gt;&quot; . alternate_name . ' '
+    endif
+  endfor
+  return ' '
+endfunction
+
+
+
+
+&quot; Alternate :cd which uses 'cdpath' for completion  &quot;{{{2
+
+command! -complete=customlist,&lt;SID&gt;CommandComplete_cdpath -nargs=1
+       \ CD  cd &lt;args&gt;
+
+function! s:CommandComplete_cdpath(arglead, cmdline, cursorpos)
+  return split(globpath(&amp;cdpath, a:arglead . '*/'), &quot;\n&quot;)
+endfunction
+
+call s:CMapABC_Add('^cd', 'CD')
+
+
+
+
+&quot; Help-related stuffs  &quot;{{{2
+
+function! s:HelpBufWinNR()
+  let wn = 1
+  while wn &lt;= winnr('$')
+    let bn = winbufnr(wn)
+    if getbufvar(bn, '&amp;buftype') == 'help'
+      return [bn, wn]
+    endif
+    let wn = wn + 1
+  endwhile
+  return [-1, 0]
+endfunction
+
+function! s:HelpWindowClose()
+  let [help_bufnr, help_winnr] = s:HelpBufWinNR()
+  if help_bufnr == -1
+    return
+  endif
+
+  let current_winnr = winnr()
+  execute help_winnr 'wincmd w'
+  execute 'wincmd c'
+  if current_winnr &lt; help_winnr
+    execute current_winnr 'wincmd w'
+  elseif help_winnr &lt; current_winnr
+    execute (current_winnr-1) 'wincmd w'
+  else
+    &quot; NOP
+  endif
+endfunction
+
+
+
+
+&quot; High-level key sequences  &quot;{{{2
+
+function! s:KeysToComplete()
+  if strlen(&amp;omnifunc)
+    return &quot;\&lt;C-x&gt;\&lt;C-o&gt;&quot;
+  elseif &amp;filetype ==# 'vim'
+    return &quot;\&lt;C-x&gt;\&lt;C-v&gt;&quot;
+  else
+    return &quot;\&lt;C-n&gt;&quot;
+  endif
+endfunction
+
+function! s:KeysToStopInsertModeCompletion()
+  if pumvisible()
+    return &quot;\&lt;C-y&gt;&quot;
+  else
+    return &quot;\&lt;Space&gt;\&lt;BS&gt;&quot;
+  endif
+endfunction
+
+
+function! s:KeysToEscapeCommandlineModeIfEmpty(key)
+  if getcmdline() == ''
+    return &quot;\&lt;Esc&gt;&quot;
+  else
+    return a:key
+  end
+endfunction
+
+
+
+
+&quot; :edit with specified 'fileencoding'.  &quot;{{{2
+
+com! -nargs=? -complete=file -bang -bar Cp932  edit&lt;bang&gt; ++enc=cp932 &lt;args&gt;
+com! -nargs=? -complete=file -bang -bar Eucjp  edit&lt;bang&gt; ++enc=euc-jp &lt;args&gt;
+com! -nargs=? -complete=file -bang -bar Iso2022jp  Jis&lt;bang&gt; &lt;args&gt;
+com! -nargs=? -complete=file -bang -bar Jis edit&lt;bang&gt; ++enc=iso-2022-jp &lt;args&gt;
+com! -nargs=? -complete=file -bang -bar Sjis  Cp932&lt;bang&gt; &lt;args&gt;
+com! -nargs=? -complete=file -bang -bar Utf8  edit&lt;bang&gt; ++enc=utf-8 &lt;args&gt;
+
+
+
+
+&quot; Jump sections  &quot;{{{2
+
+&quot; for normal mode.  a:pattern is '/regexp' or '?regexp'.
+function! s:JumpSectionN(pattern)
+  let pattern = strpart(a:pattern, '1')
+  if strpart(a:pattern, 0, 1) == '/'
+    let flags = 'W'
+  else
+    let flags = 'Wb'
+  endif
+
+  mark '
+  let i = 0
+  while i &lt; v:count1
+    if search(pattern, flags) == 0
+      if stridx(flags, 'b') != -1
+        normal! gg
+      else
+        normal! G
+      endif
+      break
+    endif
+    let i = i + 1
+  endwhile
+endfunction
+
+
+&quot; for visual mode.  a:motion is '[[', '[]', ']]' or ']['.
+function! s:JumpSectionV(motion)
+  execute 'normal!' &quot;gv\&lt;Esc&gt;&quot;
+  execute 'normal' v:count1 . a:motion
+  let line = line('.')
+  let col = col('.')
+
+  normal! gv
+  call cursor(line, col)
+endfunction
+
+
+&quot; for operator-pending mode.  a:motion is '[[', '[]', ']]' or ']['.
+function! s:JumpSectionO(motion)
+  execute 'normal' v:count1 . a:motion
+endfunction
+
+
+
+
 &quot; Misc.  &quot;{{{2
 
 function! s:ToggleBell()
@@ -345,168 +516,6 @@ endfunction
 
 
 
-&quot; CMapABC: support input for Alternate Built-in Commands &quot;{{{2
-
-let s:CMapABC_Entries = []
-function! s:CMapABC_Add(original_pattern, alternate_name)
-  call add(s:CMapABC_Entries, [a:original_pattern, a:alternate_name])
-endfunction
-
-
-cnoremap &lt;expr&gt; &lt;Space&gt;  &lt;SID&gt;CMapABC()
-function! s:CMapABC()
-  let cmdline = getcmdline()
-  for [original_pattern, alternate_name] in s:CMapABC_Entries
-    if cmdline =~# original_pattern
-      return &quot;\&lt;C-u&gt;&quot; . alternate_name . ' '
-    endif
-  endfor
-  return ' '
-endfunction
-
-
-
-
-&quot; Alternate :cd which uses 'cdpath' for completion  &quot;{{{2
-
-command! -complete=customlist,&lt;SID&gt;CommandComplete_cdpath -nargs=1
-       \ CD  cd &lt;args&gt;
-
-function! s:CommandComplete_cdpath(arglead, cmdline, cursorpos)
-  return split(globpath(&amp;cdpath, a:arglead . '*/'), &quot;\n&quot;)
-endfunction
-
-call s:CMapABC_Add('^cd', 'CD')
-
-
-
-
-&quot; Help-related stuffs  &quot;{{{2
-
-function! s:HelpBufWinNR()
-  let wn = 1
-  while wn &lt;= winnr('$')
-    let bn = winbufnr(wn)
-    if getbufvar(bn, '&amp;buftype') == 'help'
-      return [bn, wn]
-    endif
-    let wn = wn + 1
-  endwhile
-  return [-1, 0]
-endfunction
-
-function! s:HelpWindowClose()
-  let [help_bufnr, help_winnr] = s:HelpBufWinNR()
-  if help_bufnr == -1
-    return
-  endif
-
-  let current_winnr = winnr()
-  execute help_winnr 'wincmd w'
-  execute 'wincmd c'
-  if current_winnr &lt; help_winnr
-    execute current_winnr 'wincmd w'
-  elseif help_winnr &lt; current_winnr
-    execute (current_winnr-1) 'wincmd w'
-  else
-    &quot; NOP
-  endif
-endfunction
-
-
-
-
-&quot; High-level key sequences  &quot;{{{2
-
-function! s:KeysToComplete()
-  if strlen(&amp;omnifunc)
-    return &quot;\&lt;C-x&gt;\&lt;C-o&gt;&quot;
-  elseif &amp;filetype ==# 'vim'
-    return &quot;\&lt;C-x&gt;\&lt;C-v&gt;&quot;
-  else
-    return &quot;\&lt;C-n&gt;&quot;
-  endif
-endfunction
-
-function! s:KeysToStopInsertModeCompletion()
-  if pumvisible()
-    return &quot;\&lt;C-y&gt;&quot;
-  else
-    return &quot;\&lt;Space&gt;\&lt;BS&gt;&quot;
-  endif
-endfunction
-
-
-function! s:KeysToEscapeCommandlineModeIfEmpty(key)
-  if getcmdline() == ''
-    return &quot;\&lt;Esc&gt;&quot;
-  else
-    return a:key
-  end
-endfunction
-
-
-
-
-&quot; :edit with specified 'fileencoding'.  &quot;{{{2
-
-com! -nargs=? -complete=file -bang -bar Cp932  edit&lt;bang&gt; ++enc=cp932 &lt;args&gt;
-com! -nargs=? -complete=file -bang -bar Eucjp  edit&lt;bang&gt; ++enc=euc-jp &lt;args&gt;
-com! -nargs=? -complete=file -bang -bar Iso2022jp  Jis&lt;bang&gt; &lt;args&gt;
-com! -nargs=? -complete=file -bang -bar Jis edit&lt;bang&gt; ++enc=iso-2022-jp &lt;args&gt;
-com! -nargs=? -complete=file -bang -bar Sjis  Cp932&lt;bang&gt; &lt;args&gt;
-com! -nargs=? -complete=file -bang -bar Utf8  edit&lt;bang&gt; ++enc=utf-8 &lt;args&gt;
-
-
-
-
-&quot; Jump sections  &quot;{{{2
-
-&quot; for normal mode.  a:pattern is '/regexp' or '?regexp'.
-function! s:JumpSectionN(pattern)
-  let pattern = strpart(a:pattern, '1')
-  if strpart(a:pattern, 0, 1) == '/'
-    let flags = 'W'
-  else
-    let flags = 'Wb'
-  endif
-
-  mark '
-  let i = 0
-  while i &lt; v:count1
-    if search(pattern, flags) == 0
-      if stridx(flags, 'b') != -1
-        normal! gg
-      else
-        normal! G
-      endif
-      break
-    endif
-    let i = i + 1
-  endwhile
-endfunction
-
-
-&quot; for visual mode.  a:motion is '[[', '[]', ']]' or ']['.
-function! s:JumpSectionV(motion)
-  execute 'normal!' &quot;gv\&lt;Esc&gt;&quot;
-  execute 'normal' v:count1 . a:motion
-  let line = line('.')
-  let col = col('.')
-
-  normal! gv
-  call cursor(line, col)
-endfunction
-
-
-&quot; for operator-pending mode.  a:motion is '[[', '[]', ']]' or ']['.
-function! s:JumpSectionO(motion)
-  execute 'normal' v:count1 . a:motion
-endfunction
-
-
-
-
 
 
 </diff>
      <filename>vim/dot.vimrc</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>88559863767e7a557dc903094824b6d15e940e47</id>
    </parent>
  </parents>
  <author>
    <name>kana</name>
    <email>kana@4142a4a8-9c22-0410-a14c-65946c90a037</email>
  </author>
  <url>http://github.com/kana/config/commit/60783901cd3fc76d929a779883163f56002630af</url>
  <id>60783901cd3fc76d929a779883163f56002630af</id>
  <committed-date>2007-10-10T19:46:37-07:00</committed-date>
  <authored-date>2007-10-10T19:46:37-07:00</authored-date>
  <message>Revise UTILITY FUNCTIONS &amp; COMMANDS section:
- Renamed as Utilities section.
- Move the Misc. subsection at the last of the section.

Notes:
- Add rules for naming sections and subsections.
- Add a rule for writing command names.





git-svn-id: file:///c/cygwin/home/kana/var/svn-repos/config/trunk@503 4142a4a8-9c22-0410-a14c-65946c90a037</message>
  <tree>0878807f0578c71e0d01d3cb4f4601c6dc933a58</tree>
  <committer>
    <name>kana</name>
    <email>kana@4142a4a8-9c22-0410-a14c-65946c90a037</email>
  </committer>
</commit>
