LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs > Michael Uplawski
User Name
Password

Notices


Rate this Entry

[vim] avoid accidental maro recording (@q)

Posted 11-06-2021 at 07:02 AM by Michael Uplawski
Updated 11-13-2021 at 01:42 AM by Michael Uplawski

in ~/.vimrc I note
Code:
nnoremap Q q
nnoremap q <Nop>
and no longer end up in macro-recording mode, when I forget the colon before 'q'.

Copied & pasted from Stack Overflow (see there).
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 01:51 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration