Skip to content

Commit

Permalink
fix: restore capital maps
Browse files Browse the repository at this point in the history
  • Loading branch information
kawarimidoll committed Nov 20, 2023
1 parent 480c827 commit 5ffe96d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions k.vim
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@ function! k#enable() abort
execute $"inoremap <expr> {k} k#ins('{k}')"
if k =~ '\l'
let ck = s:capital(k)
execute $"inoremap <expr> {ck} k#ins('{k}',1)"

let current_map = maparg(ck, 'i', 0, 1)
if empty(current_map)
call add(s:keys_to_unmaps, ck)
else
call add(s:keys_to_remaps, current_map)
endif
execute $"inoremap <expr> {ck} k#ins('{k}',1)"
endif
endfor

Expand Down

0 comments on commit 5ffe96d

Please sign in to comment.