Quantcast
Channel: How to validate and reference digraph /special character in Vim? - Vi and Vim Stack Exchange
Viewing all articles
Browse latest Browse all 3

How to validate and reference digraph /special character in Vim?

$
0
0

I want to remove the ending section of my output that typically follows the below pattern:

^[[2D[^[D but my regex will not allow me to select the ^[ parts of the word. Note on my Vim that part shows in a different color almost like it is a a digraph or special character.

Any thoughts on how I can create a mapping to remove this from my outputs?

Note when I copied the output to my clipboard and pasted into my browser it translated the ^[ to ``

I am writing to you today as an email full of typos. Ye^[[2D[^[KYes, you heard that right – I'm a bit of a typo-ridden mess. But don't worry, I've got fa^[[2D^[[K

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>