vimrc

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules

commit ad5b01064e2d9cad86ff10dbc29f706cee18ebe4
parent 087e2455a791a50b85033988f9c82db0bb58e440
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date:   Wed, 31 May 2023 11:35:57 -0500

Added maps avoiding registers

Diffstat:
Mvimrc | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/vimrc b/vimrc @@ -49,3 +49,11 @@ cabbrev wq echo 'Use ZZ' cabbrev q! echo 'Use ZQ' cabbrev q echo 'Use ZQ' cabbrev w echo 'Use up' + +" Registers +noremap p <NOP> +noremap P <NOP> +for s:i in ['"','*','+','-','.',':','%','/','=','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'] + execute 'noremap "'.s:i.'p "'.s:i.'p' + execute 'noremap "'.s:i.'P "'.s:i.'P' +endfor