blob: 940993544ab6bd26436da94f621f81cbb2f297a4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# declare-user-mode surround
# declare-user-mode surround-append
# declare-user-mode surround-delete
# map global user s ': enter-user-mode surround<ret>'
# map global surround a ': enter-user-mode surround-append<ret>'
# map global surround d ': enter-user-mode surround-delete<ret>'
# define-command define-surround -params 3 %{
# evaluate-commands %sh{
# echo "map global surround-append %{${1}} %{i${2}<esc>a${3}}"
# echo "map global surround-delete %{${1}} %{<a-a>${2}<a-S>d,}"
# }
# }
# hook global KakBegin .* %{
# define-surround ( ( )
# define-surround [ [ ]
# # define-surround < < >
# # define-surround '{' '{' '}'
# # define-surround '<' '<' '>'
# # define-surround '`' '`' '`'
# define-surround '"' '"' '"'
# # define-surround "'" "'" "'"
# }
|