Ted Pavlic schrieb: > I just noticed that while in the :help buffer, > > :abbr this'is'a'test > > gives me "No abbreviations found", and > > :abbr this'is a test > > defines an abbreviation from "this'is" to "a test". However, if I try > either of those in my editor buffers, I get "E474: Invalid argument". > > (changing the value of "modifiable" doesn't change the behavior in the > main window) > > Why does this behavior occur? > > VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jan 12 2009 16:10:51) > MacOS X (unix) version > Included patches: 1-75 > > --Ted
In help buffers, the 'isk' option includes the ' character, making "this'is" a valid {lhs} for an abbreviation. See :h abbreviations which abbrev types are allowed. -- Andy --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---