mirror of
https://github.com/sahinakkaya/til.git
synced 2025-07-17 14:01:49 +03:00
fix: Add syntax highlighting to code blocks
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
```
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user