Skip to content

Instantly share code, notes, and snippets.

@jmound
Created September 24, 2020 16:24
Show Gist options
  • Save jmound/62579a52950cbf972fda87fd1daa2e30 to your computer and use it in GitHub Desktop.
Save jmound/62579a52950cbf972fda87fd1daa2e30 to your computer and use it in GitHub Desktop.
Open a file at the end with vim (useful for large files, like a sql dump)
# https://edunham.net/2015/01/29/vim_open_file_with_cursor_at_the_end.html
vim "+normal G$" file.txt
# or in edit mode:
vim "+normal G$" +startinsert file.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment