diff --git a/pages/common/vim.md b/pages/common/vim.md index 94c44cef8b..af72c14923 100644 --- a/pages/common/vim.md +++ b/pages/common/vim.md @@ -10,28 +10,28 @@ - Save a file: -`:write` +`:write` - Quit without saving: -`:quit!` +`:quit!` - Open a file at a specified line number: `vim +{{line_number}} {{path/to/file}}` -- View help for setting (such as {{set number}}): +- View Vim's help manual: -`:help '{{setting_name}}'` +`:help` - Undo the last operation: -`u` +`u` - Search for a pattern in the file (press `n`/`N` to go to next/previous match): -`/{{search_pattern}}` +`/{{search_pattern}}` - Perform a regex substitution in the whole file: -`:%s/{{pattern}}/{{replacement}}/g` +`:%s/{{pattern}}/{{replacement}}/g`