Tuesday, May 10, 2016

Vim start and execute command from command line

$ vi -c "vim **/*.c" 

example find string VALIDATE in files
$ vi -c "vim VALIDATE **/*.c"

example find string VALIDATE in files ignoring case
$ vi -c "set ignorecase|vim VALIDATE **/*.c"

No comments:

Blog Archive