File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 4
4
" charkey.vim -
5
5
"
6
6
" Created by skywind on 2022/10/26
7
- " Last Modified: 2022/10/26 22:06
7
+ " Last Modified: 2024/02/22 22:19
8
8
"
9
9
" ======================================================================
10
10
@@ -53,6 +53,12 @@ for key in range(10)
53
53
let pending += [nr2char (char2nr (' 0' ) + key )]
54
54
endfor
55
55
56
+ for i in range (12 )
57
+ let nn = i + 1
58
+ let cc = eval (' "\<f' . nn . '>"')
59
+ let s: special_names [cc ] = printf (' <f%d>' , nn )
60
+ endfor
61
+
56
62
for ch in pending
57
63
let cc = eval (' "\<c-' . ch . ' >"' )
58
64
if ! has_key (s: special_names , cc )
@@ -98,6 +104,11 @@ let s:char_display = {
98
104
\ " <del>" : " DEL" ,
99
105
\ }
100
106
107
+ for i in range (12 )
108
+ let n = i + 1
109
+ let s: char_display [printf (' <f%d>' , n )] = ' F' . n
110
+ endfor
111
+
101
112
102
113
" ----------------------------------------------------------------------
103
114
" translate from key-name '<esc>' to key-code '\<esc>'
You can’t perform that action at this time.
0 commit comments