Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ctrl+T, Ctrl+O, not working right

Neither Ctrl+T nor Ctrl+O in IdeaVim always return to the previous location when jumping to something in any way.

Yes, after something like Ctrl+], you can jump back to where you came from using Ctrl+O. But there are all kinds of different ways to jump around.

I would like a set of shortcut keys that makes it consistently jump back to where I came from, regardless of how it jumped to something. Be it through a Vim action, or an IDE action, Ctrl+O, and Ctrl+I ought to just let me go back and forth. Right now, it seems like a horrible confusing frustrating mess.

like image 859
Mike Avatar asked Apr 23 '15 21:04

Mike


People also ask

How do I fix Ctrl shortcuts not working?

Run the Keyboard Troubleshooter Click Start, then head to Settings > System > Update & Security. Click Troubleshoot > Additional troubleshooters. Under Find and fix other problems, select Keyboard. Select Run the troubleshooter to start the scan.

Why my right control key is not working?

Reasons for Control Key Not Working The possible reasons include: There is a physical problem with the Ctrl button. There is a bad Windows update. The HID driver is corrupted or improper.

How do I enable Ctrl T?

To use this keyboard shortcut, press and hold either Ctrl key, and while continuing to hold, press T .


1 Answers

Add nmap <C-o> :action Back<CR> to your .ideavimrc file in your home folder.

This back navigation behavior will work better than the default one.

like image 158
nilsi Avatar answered Sep 29 '22 11:09

nilsi