editors

Find and replace in multiple files

roland's picture

perl -pi -w -e 's/search/replace/g;' *.php -e means execute the following line of code.
-i means edit in-place
-w write warnings
-p loop

link

Vim Line Numbers

roland's picture

To show the line numbers in vim do the following:

set number
or
set nu
or
se nu

To hide the line numbers append ! to number:

set number!
or
set nu!
or
se nu!

More Details: http://www.vim.org/tips/tip.php?tip_id=19

Syndicate content