5

Source current file when editing a script

view full story
linux-howto

http://vim.wikia.com – add a function to source a range ← Older revision Revision as of 10:44, September 28, 2010 Line 31: Line 31: <pre> <pre> nmap <C-A> :w<CR>:so %<CR> nmap <C-A> :w<CR>:so %<CR>   + </pre>   +   + ----   + When developing a function it is sometime useful to source only a part of a file.   + The following function dumps a range in a file and source it:   + <pre>   + function! SourceRang (HowTos)