Vim remap ex-mode key

Posted by Drakonen on June 19, 2008 in Uncategorized | Short Link

I’ve become in the habit to miss shift-a in vim (edit at end of line), and instead pressing shift-q which brings you to the ex-mode. To get out of that, you need to type the command “visual“. Quite long and annoying.

Quick look at the help pointed me to the vimrc_example.vim (:help vimrc_example.vim). And this nifty remap:

map Q gq

Problem solved!

Facebook Twitter Email

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Copyright © 2005-2012 Draakwired All rights reserved.
The Shades theme, version 1.7, is a BuyNowShop.com creation.

Social links powered by Ecreative Internet Marketing