Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable cmd+k when using Vim in terminal?

So when I'm using Vim in the mac osx terminal I accidentally enter the command cmd+k that clears my terminal because I'm used to the motion, this makes me have to exit vim and enter again. I want to know if theres a way to disable this.

For example this is me editing my .vimrc

enter image description here

Then I enter the command and my terminal looks like this:

enter image description here

Is there a way to disable this command when using Vim only? I want to continue using it when using the terminal outside Vim. Thanks

like image 998
ravelinx Avatar asked Feb 24 '18 22:02

ravelinx


Video Answer


1 Answers

Instead of restarting vim use CTRL-L to redraw the screen.

like image 173
phd Avatar answered Oct 13 '22 20:10

phd