vim replace

Bismillah

searc in vim

reference:
https://www.linux.com/training-tutorials/vim-tips-basics-search-and-replace/


:%s/search/replace/g


ctrl + v -> block selection in visual mode


:8,10 s/search/replace/g

?searchstring #backward searching

If you want to search an entire file, you can use % to indicate that as the range:

:%s/search/replace/g

No comments:

Post a Comment