:%s'replacethis'withthis'gc
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
vim search and replace escape forward slash (See related posts)
You need to create an account or log in to post comments to this site.
Related Posts
» shell/vim .rc's for Japanese... in shell osx terminal vim Japanese
» VIM Tips in vim
» How to count particular word... in vi count vim
» Open existing vim in iTerm in vim iterm
» vi find/replaces for adding ... in regex sql vi vim findreplace subtitution
» vim backreference on search ... in linux vim administration
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails