Permalink
Browse files

vim: arpeggio: Completion for :Arpeggio commands

  • Loading branch information...
1 parent 9635caa commit 25cc31b829df61982fe044d98d1b6f2fd3fff102 @kana kana committed Nov 9, 2008
Showing with 4 additions and 3 deletions.
  1. +1 −0 doc/arpeggio.txt
  2. +3 −3 plugin/arpeggio.vim
View
@@ -296,6 +296,7 @@ CHANGELOG *arpeggio-changelog*
already mapped to something other than a part of another
|arpeggio-key-mapping|.
- Add custom 'timeoutlen' per key. See |g:arpeggio_timeoutlens|.
+ - Add a bit of completion for |arpeggio-commands|.
0.0.2 2008-11-07T22:16:51+09:00
- Fix |:Arpeggionoremap| that allowed remapping but it should not do
View
@@ -39,12 +39,12 @@ endif
-command! -bar -nargs=+ Arpeggio call arpeggio#_do(<q-args>)
+command! -bar -complete=command -nargs=+ Arpeggio call arpeggio#_do(<q-args>)
function! s:_(...)
execute call('printf',
- \ ['command! %s -bar -nargs=* Arpeggio%s'
+ \ ['command! %s -bar -complete=mapping -nargs=* Arpeggio%s'
\ . ' call arpeggio#_map_or_list(%s, %s, <q-args>)']
\ + a:000)
endfunction
@@ -72,7 +72,7 @@ call s:_('', 'xnoremap', '"x"', 1)
function! s:_(...)
execute call('printf',
- \ ['command! %s -bar -nargs=* Arpeggio%s'
+ \ ['command! %s -bar -complete=mapping -nargs=* Arpeggio%s'
\ . ' call arpeggio#_unmap(%s, <q-args>)']
\ + a:000)
endfunction

0 comments on commit 25cc31b

Please sign in to comment.