Remap 'jk' to <ESC> in Google Colab Vim - google-colaboratory

I am using the vim keybindings in the Google Colab editor. However I want to remap 'jk' to in the Insert mode, similar to the result of inoremap jk <ESC> in .vimrc. How do I make this change?

press escape to switch normal mode then press : to switch to command mode then type
:imap jk <Esc>

Related

Neovide: How to paste with SHIFT+INSERT?

I normally use vim and neovim on the Gnome Terminal where I can paste from the Gnome clipboard with SHIFT+INSERT but this does not work in neovide (Arch Linux AUR package neovide-git 0.7.0.r336.g86aa275-1).
How can I enable clipboard paste with SHIFT+INSERT in neovide like it works in normal vim/nvim from the terminal?
Make a new configuration file for GUI configuration as:
~/.config/nvim/ginit.vim
After that, add the below line to paste using SHIFT+INSERT as:
map! <S-Insert> <C-R>+

VIM mode: how to get ex commands to work again in colab?

Haven't used colab since 2021 - however, with VIM enabled in the editor settings, it seems that I cannot use ex commands anymore, what gives? I believe this was possible before.
For example:
:s does not work for search and replacement, instead it enters INSERT mode.

How to edit command lines in Intellij Terminal

I have set -o vi in my .bashrc and it does get invoked. But Escape does not return to command-mode in the Intellij terminal. I had already followed a Jetbrains post for changing Switch Focus to Editor away from Escape:
But that was not enough: Hitting escape on the command line shown just puts in additional control characters:
So how can vi edit mode for the ocmmand line be made functional? If not vi mode then what reasonable alternatives exist?
I am on 2020.2 Ultimate on macOS . I do not have set TERM=linux

Editing profiles in arch linux

I am very new to Arch Linux and have chrooted into the system. I screwed up the wireless profile, but have fixed them in netctl. How do I write to the file and exit out of the text editor that is prompted for you to edit the file?
To write to the file:
sudo nano /path/to/file
And to exit from the nano text editor press Control X.
Then Y to confirm save and exit, and enter to commit the save.
It depends on what type of editor has been opened. Which you can set in the .bashrc file.
If it is nano press ctrl+o to save the changes and ctrl+x to quit
If it is vi or vim, Goto command mode by pressing escape. Then type :wq to write and press enter.
If you are not able to make out between the two, just check if it has shortcut key info at the bottom of the page, if yes. It is nano or else it is vi.
PS: Since you are new the arch linux I assumed that you have not installed any other CLI based editors.

How can I prevent popup from getting closed by the escape key in IntelliJ IDEA/PhpStorm/Pycharm/Rubymine?

-- UPDATE --
the new version of ideaVim plugin fixed this issue already.
I'm using PhpStorm under ubuntu with ideaVim plugin.
One thing annoying me is when I edit in the popup windows such as show diff editor I need to press Escape to switch to Vim normal mode, but the popup window still gets closed.
I can't find any settings to change or disable Escape key mapping in PhpStorm for closing the popups.
You can use Ctrlc instead of ESC to switch Vim to normal mode. Also, as of version 0.33, you can now add new mappings in your ~/.vimrc, so you can for example inoremap jk <ESC> inoremap kj <ESC> and then use the jk chord to exit insert mode.
the new version of ideaVim plugin fixed this issue already.