sponsor Vim development Vim logo Vim Book Ad

SmartX : Smart deletion of \X escapes with the x/X/Backspace/Delete keys

 script karma  Rating 3/2, Downloaded by 878  Comments, bugs, improvements  Vim wiki

created by
Christian J. Robinson
 
script type
utility
 
description
This script will autmatically delete \X escapes when the cursor is on the \ and you press X in normal mode or after the X and you press backspace in insert mode.  X and the delete key in normal mode and the delete key in insert mode also work.
 
install details
The mappings are buffer-local so you need to source it from a filetype plugin, for example, put it in ~/.vim and put "runtime SmartX.vim" in ~/.vim/ftplugin/perl.vim.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
SmartX.vim 0.2 2022-08-22 9.0 Christian J. Robinson - Update for Vim 9 (no functionality added)
SmartX.vim 0.1 2007-07-16 7.0 Christian J. Robinson Initial upload
ip used for rating: 52.15.235.28

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github