Hi,

I have a series of questions:


1. I want to edit multiple files from command line so I created a vim script with all the commands (>20). I use a batch file in WinXP:

|@echo off
vim -s script file.txt
exit


however I need to run this script on multiple files. In vim's help there is 
this code for use in bash(?) shell

||for file in *.txt; do|
|         vim -e -s $file < change.vim|
|         lpr -r tempfile|
|done

however it doesn't seem to work under Cygwin.



2.Can I delete after a pattern search? Sth like this:

:/^<html\_.{-}<body>: /-3d

and how can I repeat this globally?
3. This is not Vim related but I wonder if anyone knows sth. I have the 
following structure of folders and files:

..
folder1
        file1
        file2
folder2
        file1
        file2
.....


and want to add the folder name into the filename:
||

folder1
        ||folder1|_|file1
        ||folder1|_|||file2
folder2
        ||folder2|_|||file1
        ||folder2|_|||file2



Thanks in advance, Nikos
|

Reply via email to