Skip to content

Commit

Permalink
🐞fix: gvim調整
Browse files Browse the repository at this point in the history
  • Loading branch information
utubo committed Nov 1, 2024
1 parent cd2cc53 commit 523acd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .gvimrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def A(d: number)
var f = split(&guifont, ':h')
&guifont = f[0] .. ':h' .. (str2nr(f[1]) + d)
enddef
nn <silent> <M-S-k> <Cmd>call <SID>A(v:count1)<CR>
nn <silent> <M-S-j> <Cmd>call <SID>A(-v:count1)<CR>
nn <silent> <M-C-k> <Cmd>call <SID>A(v:count1)<CR>
nn <silent> <M-C-j> <Cmd>call <SID>A(-v:count1)<CR>
nn <silent> <C-ScrollWheelUp> <Cmd>call <SID>A(v:count1)<CR>
nn <silent> <C-ScrollWheelDown> <Cmd>call <SID>A(-v:count1)<CR>
nn <silent> <Esc> <Cmd>set go-=m<Bar>set go-=T<CR>
Expand Down
6 changes: 3 additions & 3 deletions src/.gvimrc.src.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def IncFontSize(d: number)
var f = split(&guifont, ':h')
&guifont = f[0] .. ':h' .. (str2nr(f[1]) + d)
enddef
nnoremap <silent> <M-S-k> <Cmd>call <SID>IncFontSize(v:count1)<CR>
nnoremap <silent> <M-S-j> <Cmd>call <SID>IncFontSize(-v:count1)<CR>
# 禁断の🖱 (拡大縮小はこっちのほうが馴染みがあるから…)
nnoremap <silent> <M-C-k> <Cmd>call <SID>IncFontSize(v:count1)<CR>
nnoremap <silent> <M-C-j> <Cmd>call <SID>IncFontSize(-v:count1)<CR>
# 禁断のマウス操作 (拡大縮小はこっちのほうが馴染みがあるから…)
nnoremap <silent> <C-ScrollWheelUp> <Cmd>call <SID>IncFontSize(v:count1)<CR>
nnoremap <silent> <C-ScrollWheelDown> <Cmd>call <SID>IncFontSize(-v:count1)<CR>
# }}}
Expand Down

0 comments on commit 523acd3

Please sign in to comment.