Nithin Bekal on Nostr: TIL that in #vim, you can use <C-w>c to close the current window. I had mapped ...
TIL that in #vim, you can use <C-w>c to close the current window.
I had mapped <leader>q to :bd in my config, but if I had the same file open in two windows, this would accidentally close both. Replacing that mapping with <C-w>c makes things so much easier!
#neovim
Published at
2024-08-15 02:38:37Event JSON
{
"id": "2779a39922432e571ba9974537d6aef652a14228066659c2ba4525a2e7315e59",
"pubkey": "141005f0e8496650170237fc813474b871a6688c8a7611ba5ec4d641c34db958",
"created_at": 1723689517,
"kind": 1,
"tags": [
[
"t",
"vim"
],
[
"t",
"neovim"
],
[
"proxy",
"https://ruby.social/users/nithinbekal/statuses/112963716214849692",
"activitypub"
]
],
"content": "TIL that in #vim, you can use \u003cC-w\u003ec to close the current window. \n\nI had mapped \u003cleader\u003eq to :bd in my config, but if I had the same file open in two windows, this would accidentally close both. Replacing that mapping with \u003cC-w\u003ec makes things so much easier!\n\n#neovim",
"sig": "00a86a0c40671aab2f4bcb1170dcedc9ca29e961364c4177945ba514e9ecef4457b2a2eaab6caccac8c8bae50cea9e87be452af3e7789fb14fed8ae36bfd8163"
}