有趣的vi

;init module
;mov ^v$"ay@a to register@c with ^v$h"cy
    ^v$"ay@a
;mov down and exec @c
    :map <F4> @c
;--end
;test module
;mov to different line and push <F4>
    :set number
    :set nonumber
;--end
;extend module
;mov ^v$h"ay to register@b with ^v$h"by
    ^v$h"ay
;exec with <F4>
    :map <F2> @a
    :map <F3> @b
;mov :wq to register@b with push <F3>
;exec with push <F2>
    :wq
;--end

;exec with <F4>
    :r !uname -a
Linux fiks 3.14.8-200.fc20.i686 #1 SMP Mon Jun 16 22:36:56 UTC 2014 i686 i686 i386 GNU/Linux
;--end

你可能感兴趣的:(有趣的vi)