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.

About selah

Programmer at Prominence Advisors. Also dabbling musician. Also cycling commuter.

This entry was posted in Programming, Vim and tagged , , , , . Bookmark the permalink.

Leave a Reply

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