fix: Add syntax highlighting to code blocks

This commit is contained in:
Asocia
2021-12-08 16:31:46 +03:00
parent 871f28d44c
commit 089e6ebae8
41 changed files with 92 additions and 87 deletions

View File

@ -1,6 +1,6 @@
You can execute vim commands in terminal by prefixing your commands with `+` symbol:
```
```bash
vim filename +/searchterm
vim +PlugInstall
vim filename +g/foo/d

View File

@ -1,5 +1,5 @@
Typically files ending with a ~ are backups created by editors like emacs, nano or vi. Set `backupdir` to some other location if you don't want to see them everywhere.
```
```vim
set backupdir=/path/to/somewhere
```

View File

@ -1,6 +1,6 @@
You can search through multiple files using `vimgrep` command.
```
```vim
# search for string all python files in the current dir
:vimgrep string *.py
# search for string all python files in the current dir and subdir of the current dir

View File

@ -1,6 +1,6 @@
The global command `:g[lobal]` is very powerful. It is used to execute a command matching a pattern. The syntax is
```
```vim
:[range]g/pattern/cmd
```