Visdom, briefly.

Wanna evaluate a line of code in your .vimrc without having to so: the whole damn file?

noremap  <C-x><C-e> :exe getline(".")<CR>

I stole the binding from Emacs (suckers). Put yer cursor on the line of vim script you want to evaluate and control-x, control-e.

Great for testing mappings and commands and all whatnot.

You do have your caps lock remapped to control, right? Don’t make me check your pinky.

Advertisements

About Selah Ben-Haim

Programmer for Clockwork Active Media Systems. Also dabbling musician. Also cycling commuter.
This entry was posted in Programming, Vim and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s