I have abbreviated main to '#include.....', I was looking to unabbreviate it for one vim session, and tried the following
:una main
I get error 'E24: No such abbreviation'. The problem is, it's expanding the main in this command also. When I check the history, it shows
:una #include<stdio.h>
which proves that it has expanded the abbreviation.
I hope it's clear. Is there any way to solve this issue?
I know abc will clear all abbreviations, but I am only looking to unabbreviate one abbreviation.
I am using this version:
$ vim --version
VIM - Vi IMproved 7.4
vimversion and I can't reproduce this behavior. My command history shows (like yours) that the abbreviation was expanded withunabut it is disabled after I enter the command.:una mainfollowed by a space? In other words, are you causing the abbreviation to be expanded before entering the command?iuna <buffer> main