Replacement string
Global, replace string:
Command mode :% s/old/new/g
Old, new does not need double quotes, g is global, without g is the first line to be changed example: % s/test_shm_tool.c/$(SOURCE)/g local, replace string:
: n1, n2 s/old_str/new_str/g, add c if each line is confirmed
Read More:
- How to Split numbers and strings in a strings
- [solution] install youcompleteme through VIM plug-in manager VIM plug, including ycmd server shutdown solution
- Differences between VI and VIM in Linux
- Hot code replace failed error in eclipse
- Hot code replace failed in eclipse compilation
- After editing a file with the VIM command in xshell, the ESC key cannot be output,,,
- Error of replacing VIM editor: s in Linux: pattern not found
- ubuntu executes apt-get update and reports Failed to fetch/replace Ali source
- Java uses regular expressions to intercept the contents between specified strings
- Delete all content under vim
- python reads csv file is an error _csv.Error: iterator should return strings, not bytes (did you open the file in text)
- Error: Failure while executing; `git config –local –replace-all homebrew.analyticsmessage true
- VIM search settings highlight
- The conversion between [Python] bytes and hex strings.
- After upgrading php7, PHP program prompts an error: operator not supported for strings in causes and Solutions
- Uncaught TypeError: Cannot read property ‘replace’ of null
- 43. Implementation of the shortest code of multiply strings | Java
- Error analysis of swap file “*. SWP” already exists! When editing files with VIM
- Shell removes double quotes from strings
- Save file and exit command of vim