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>z", "<Plug>(zoom-toggle)")
|
||||||
vim.keymap.set("n", "<C-w><C-z>", "<Plug>(zoom-toggle)")
|
vim.keymap.set("n", "<C-w><C-z>", "<Plug>(zoom-toggle)")
|
||||||
-- let g:zoom#statustext='Z'
|
-- let g:zoom#statustext='Z'
|
||||||
-- function! MyCtrlW()
|
vim.keymap.set("n", "<C-w>", function()
|
||||||
-- let char = nr2char(getchar())
|
local char = vim.fn.nr2char(vim.fn.getchar())
|
||||||
--
|
|
||||||
-- if get(t:, 'zoomed', 0) == 1
|
if vim.fn.get('t:', 'zoomed', 0) == 1 then
|
||||||
-- if char is# 'v' || char is# 's' || char is# '' || char is# ''
|
if char == 'v' or char == 's' or char == '' or char == '' then
|
||||||
-- return ""
|
return ""
|
||||||
-- endif
|
end
|
||||||
-- end
|
end
|
||||||
-- return "\<C-w>".char
|
return "<C-w>"
|
||||||
-- endfunction
|
end, { expr = true, replace_keycodes = false})
|
||||||
-- nnoremap <expr> <C-w> MyCtrlW()
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue