WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   vimrc (http://www.wcm.at/forum/showthread.php?t=85271)

irrsinn 22.01.2003 14:10

vimrc
 
ich will in meiner vimrc eine abkürzung mit iabbrev definieren,
die im file die zeichenfolge <nl> ausgibt. <nl> wird aber als newline interpretiert, daher hab ich im file dann einen zeilenwechsel statt der 4 zeichen.

wie kann ich die zeichen maskieren, sodass sie als text interpretiert werden?

_m3 22.01.2003 14:15

Ich wuerde mal auf
\<nl\>
tippen.

irrsinn 22.01.2003 14:18

leider nein. dann hab ich \<ln\> im file stehn

_m3 22.01.2003 14:35

Mach ein "cpo +=<", dann gehts mit "iabrev zzz <nl>".

Code:

                <        Disable the recognition of special key codes in |<>|
                        form in mappings, abbreviations, and the "to" part of
                        menu commands.  For example, the command
                        ":map X <Tab>" results in X being mapped to:
                                '<' included:  "<Tab>"  (5 characters)
                                '<' excluded:  "^I"    (^I is a real <Tab>)



Alle Zeitangaben in WEZ +2. Es ist jetzt 15:27 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag