more
This commit is contained in:
parent
70d23c1026
commit
9c7b62326f
1 changed files with 10 additions and 11 deletions
|
@ -74,14 +74,13 @@ end, { silent = true })
|
|||
vim.keymap.set("n", "<C-w>z", "<Plug>(zoom-toggle)")
|
||||
vim.keymap.set("n", "<C-w><C-z>", "<Plug>(zoom-toggle)")
|
||||
-- let g:zoom#statustext='Z'
|
||||
-- function! MyCtrlW()
|
||||
-- let char = nr2char(getchar())
|
||||
--
|
||||
-- if get(t:, 'zoomed', 0) == 1
|
||||
-- if char is# 'v' || char is# 's' || char is# '' || char is# ''
|
||||
-- return ""
|
||||
-- endif
|
||||
-- end
|
||||
-- return "\<C-w>".char
|
||||
-- endfunction
|
||||
-- nnoremap <expr> <C-w> MyCtrlW()
|
||||
vim.keymap.set("n", "<C-w>", function()
|
||||
local char = vim.fn.nr2char(vim.fn.getchar())
|
||||
|
||||
if vim.fn.get('t:', 'zoomed', 0) == 1 then
|
||||
if char == 'v' or char == 's' or char == '' or char == '' then
|
||||
return ""
|
||||
end
|
||||
end
|
||||
return "<C-w>"
|
||||
end, { expr = true, replace_keycodes = false})
|
||||
|
|
Loading…
Add table
Reference in a new issue