Reputation: 1785
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
Then I enter the command and my terminal looks like this:
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
Upvotes: 11
Views: 2147
Reputation: 6930
Found the answer to this question while looking for how to do the same thing in tmux
Essentially, tell iTerm2 to map cmd+k
to send the control sequence 0x0c
Upvotes: 0