vi tricks

vi
# Delete all lines starting with "pattern"
:g/^pattern/d

# Save and quit
:wq

open vi with insert mode
alias vi='vim +start'

# Open at line 10

vi +10 

Comments

Popular posts from this blog

Container Runtime Interface

iTerm

Ansible Plugin