Saturday, 16 October 2010

 

Creating and Using a VIM Scratch File

" put following in your _vimrc

" store for useful text, reusable stuff, code sections
map <f4> :tabe c:/aax/store.txt<cr>
imap <f4> :tabe c:/aax/store.txt<cr>

Hit the F4 key to open store.txt in a separate tab. I've currently got a few snippets of Perl I need frequently , a few telephone numbers etc. I find it very useful. The VIM maps above are not rocket science and you will see how to vary them for your own requirements.

(corrected)

Labels:


This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]