Skip to content

Instantly share code, notes, and snippets.

@lekhanh1234
Last active October 4, 2016 16:00
Show Gist options
  • Select an option

  • Save lekhanh1234/2c542f25cef7e134286139b6ea0b02ae to your computer and use it in GitHub Desktop.

Select an option

Save lekhanh1234/2c542f25cef7e134286139b6ea0b02ae to your computer and use it in GitHub Desktop.

set space for a block of code

:4,9s/^/   /

It means, from line 4 to line 9, search for ^ and replace by / /

Go to a block of code using

shift 0 : move cursor to the end of block
shift 9 : move cursor to the head of block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment