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)
" 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: vim
Comments:
<< Home
blogspot is eating the proper formatting:
" 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>
" 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>
Subscribe to Post Comments [Atom]
<< Home
Subscribe to Posts [Atom]
Post a Comment