Wikia

Vim Tips Wiki

Changes: Disabling cabbrev

Edit

Back to page

(minor tweaks)
(Change <tt> to <code>, perhaps also minor tweak.)
 
Line 12: Line 12:
 
|category2=
 
|category2=
 
}}
 
}}
Have you ever been annoyed by an over-zealous cabbrev? A simple way to temporarily disable it is <tt>set invpaste</tt>. Very convenient in combination with the <tt>'pastetoggle'</tt> key. Note however that <tt>'pastetoggle'</tt> does not work if you are already in command-line mode, as documented in the help.
+
Have you ever been annoyed by an over-zealous cabbrev? A simple way to temporarily disable it is <code>set invpaste</code>. Very convenient in combination with the <code>'pastetoggle'</code> key. Note however that <code>'pastetoggle'</code> does not work if you are already in command-line mode, as documented in the help.
   
You can also simply press <tt><C-V></tt> before whatever character (usually <tt><space></tt>) that you type that will expand the abbreviation. This will insert the character literally without expanding the abbreviation.
+
You can also simply press <code><C-V></code> before whatever character (usually <code><space></code>) that you type that will expand the abbreviation. This will insert the character literally without expanding the abbreviation.
   
 
==References==
 
==References==

Latest revision as of 05:26, July 13, 2012

Tip 352 Printable Monobook Previous Next

created 2002 · complexity intermediate · author Kartik Agaram · version 6.0


Have you ever been annoyed by an over-zealous cabbrev? A simple way to temporarily disable it is set invpaste. Very convenient in combination with the 'pastetoggle' key. Note however that 'pastetoggle' does not work if you are already in command-line mode, as documented in the help.

You can also simply press <C-V> before whatever character (usually <space>) that you type that will expand the abbreviation. This will insert the character literally without expanding the abbreviation.

ReferencesEdit

CommentsEdit

Does anybody have a better way to disable cabbrev's? The Vim docs (a little above help abbreviate-local) say pressing <C-v> twice somewhere within the abbrev avoids expanding it. Doesn't work for me, though. Pressing <C-v><Space> works in the ':' prompt, but not while searching - what if I don't want to include a space in the pattern?


Around Wikia's network

Random Wiki