dharmik on Nostr: in case you too use ``vsplit | term`` to split when using #vim and get stuck into a ...
in case you too use ``vsplit | term`` to split when using #vim and get stuck into a buffer where you can't then change the window, i got you.
add this to your config:
" Use Ctrl + ] to exit terminal mode and return to normal mode
tnoremap <C-]> <C-\><C-N>
```
also, did you know that `C-]` works like `Esc`. i don't know why.
Published at
2024-12-26 14:02:13Event JSON
{
"id": "3456097f129db6ae90fee59d76554ac308ff145177fc781c2200a41ef9d01bd0",
"pubkey": "24d53b5b7fdb0dad7d0082b11763b21324af150e6daa8d0c0bb9b150a1e54568",
"created_at": 1735221733,
"kind": 1,
"tags": [
[
"t",
"vim"
],
[
"proxy",
"https://linuxusers.in/dharmik/p/1735221733.849749",
"activitypub"
]
],
"content": "in case you too use ``vsplit | term`` to split when using #vim and get stuck into a buffer where you can't then change the window, i got you.\n\nadd this to your config:\n\n\" Use Ctrl + ] to exit terminal mode and return to normal mode\ntnoremap \u003cC-]\u003e \u003cC-\\\u003e\u003cC-N\u003e\n ```\n\nalso, did you know that `C-]` works like `Esc`. i don't know why.\n",
"sig": "c7f0084f15bc54e4f9fa7f53d823c95df06110d7e028ef52485b46a696cd11502e7de881da4fd544b5303cf5048154719c90e04acf95b90543aa522665562077"
}