Skip to content
Menu
myCloud myCloud

Personal short notes about Cloud

  • XMPie
  • AWS
    • AWS Topics
    • AWS Architecture
    • AWS CLI
    • AWS Health
    • AWS Policies
    • AWS Cost
  • CHEAT SHEETS
myCloud myCloud

Personal short notes about Cloud

vim

By mikado on April 1, 2023April 1, 2023
  • undo

u

  • diplays line #

:set number

  • go to line 14

:14

  • go to character 40

:goto 40

:s (substitute)

  • count # of time a pattern exists

:%s/pattern//gn

  • Replace foo to bar

:%s/foo/bar/g

  • Add comment ( and space) for line 5 to 8

:5,8s/^/# /

Move around

  • Go to first / last line

gg / G

  • create new line before / after cursor

O / o

  • move to start /end of line

^ / $

Category: Linux

Categories

  • AWS (4)
  • AWS Architecture (8)
  • AWS CLI (5)
  • AWS Cost (3)
  • AWS Health (4)
  • AWS Policies (2)
  • AWS Topics (24)
  • CHEAT SHEETS (16)
  • Container (21)
  • Datadog (4)
  • Jenkins (2)
  • Linux (9)
  • Microsoft (7)
  • Python (1)
  • SCRIPTS (9)
  • Terraform (5)
  • XMPie (6)
©2025 myCloud
Click to Copy