Loading ...
Sorry, an error occurred while loading the content.

53956RE: Mapping greater than ( ) key

Expand Messages
  • Dave Silvia
    Oct 3, 2004
    • 0 Attachment
      That's good to hear!) It proves neither one of us is crazy!;)

      thx,
      Dave S.

      *** -----Original Message-----
      *** From: David Nebauer [mailto:davidnebauer@...]
      *** Sent: Sunday, October 03, 2004 2:00 AM
      *** To: Dave Silvia
      *** Cc: vim@...
      *** Subject: Re: Mapping greater than (<gt>) key
      ***
      ***
      *** Dave Silvia wrote:
      ***
      *** >I guess I don't see what you're trying to do. What does the
      *** '>' do? Just
      *** >place text? If I do
      *** >
      *** > :execute "inoremap \> ><CR>"
      *** >
      *** >It successfully maps '>' and outputs '>'
      *** >
      *** >Can you give an example that is independent enough for others
      *** to work with?
      *** >Something that doesn't work like you'd like it to, what
      *** exactly you expected
      *** >to see, and how it can be reproduced independent of your xml.
      *** >
      *** >I'm kinda old school. I'm used to 'give me the input, the
      *** expected output
      *** >and let me see what I can come up with'. :-)
      *** >
      ***
      *** Sorry if my thinking on this has been muddled. The mapping produced
      *** bizarre results in my xml files. However, I just tried the following
      *** mapping
      ***
      *** inoremap > >
      ***
      *** in a non-xml file where it worked perfectly.
      ***
      *** After further investigation I've isolated the problem to Devin Weaver's
      *** xmledit ftplugin ('xml.vim'). This plugin uses the '>' character to
      *** autoinsert closing tags (and several other features). It was this and
      *** not the shift-lines behaviour I was seeing. The mapping does not take
      *** effect in my xml files because of the xml ftplugin. As is usual in
      *** these cases, it seems obvious in retrospect.
      ***
      *** I guess it's the plugin or the mapping, and I have to go with
      *** the plugin
      *** as it is so useful.
      ***
      *** Thanks,
      *** David.
    • Show all 8 messages in this topic