Thank you very much Christian for your response.

I am not sure how to run this script.

The first thing I tried was copying and pasting that into vim and applying
it like a command (just like :de1,$ for example).

I got the message: E81: Using <SID> not in a script context

I also saved that scirpt as a .txt file in the same directory as the file I
want to split, and opened the file I wanted to split and applied the
command:

:com! -nargs=1 -bang -complete=dir SplitFile 

followed by the command:

\:call <SID>Split(empty('<bang>') ? 0 : 1, <q-args>) 

but I got a similar error.

How is it that I run this script ??

Thank you very much for all your help. I am quite new to vim.
-- 
View this message in context: 
http://www.nabble.com/separate-one-file-into-many-files-tp24854914p24908413.html
Sent from the Vim - General mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to