VIM Cheatsheet

This is just a quick reference guide for useful VIM commands. I shall be populating this as I go along

Disable Word Wrap

Once inside vim, make sure you are not in edit mode (hit escape) and then type the following command:

:set nowrap

Go To Line

There are many ways to go to specific line, but my favourite is to type the following command in edit mode:
:[line number here]

Show Line Numbers

Use either of the following commands:

:set number
:set nu

Copy Line

yy
To then paste the line, use
p

Show Line Endings

:set list

References

No comments:

Post a Comment