mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
Util: Make split easily closable
This commit is contained in:
parent
898ec47418
commit
e263d24aaa
1 changed files with 4 additions and 0 deletions
|
@ -84,3 +84,7 @@ def show_in_split(lines, size=None, position="belowright"):
|
|||
vim.command("setlocal buftype=nofile")
|
||||
vim.command("setlocal nowrap")
|
||||
vim.command("setlocal filetype=taskinfo")
|
||||
|
||||
# Make the split easily closable
|
||||
vim.command("nnoremap <silent> <buffer> q :bd<CR>")
|
||||
vim.command("nnoremap <silent> <buffer> <enter> :bd<CR>")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue