I'm trying to create a function in my .vimrc that will apply a series of global pattern-matching substitutions but am having some trouble.
Here's what I've got so far:
function Scrub ()
:%s/<TAB>/ /g<CR>
:%s/\s*$//g<CR>
endfunction
map <silent><F7> :call Scrub ()
I'm probably not imputting the substitutions correctly. Would someone please help me out?
TIA,
Still-learning Steve
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment