I'm looking for a way to get the character under the cursor inside a script.
Any ideas?
Thanks and best regards,
- Christoph
I don't know anything about writing scripts, so this may be useless, but...
Maybe you can incorporate the 'ga' or 'g8' commands. They give encoding
information about the character under the cursor.
--
View this message in context:
http://www.nabble.com/Character-under-cursor-t1721837.html
Christoph Nodes wrote:
I'm looking for a way to get the character under the cursor inside a
script.
grab a copy of the character under the cursor into curchr
let curchr= getline(.)[col(.)-1]
Regards,
Chip Campbell