In command mode (press Esc if you are not sure) you can use:
- gg,
- :1,
- 1G,
- or 1gg.
Related Contents:
- Indent multiple lines quickly in vi
- How to duplicate a whole line in Vim?
- Turning off auto indent when pasting text into vim
- How do I move to end of line in Vim?
- How to make vim paste from (and copy to) system’s clipboard?
- Differences between Emacs and Vim
- Copy all the lines to clipboard
- What are the benefits of learning Vim? [closed]
- Using Vim’s tabs like buffers
- Disabling swap files creation in vim
- What is the best way to force yourself to master vi? [closed]
- How do you return from ‘gf’ in Vim
- Saving vim macros
- How to paste in a new line with vim?
- Favorite (G)Vim plugins/scripts? [closed]
- How can I maximize a split window?
- Vim file navigation
- Vim Macro on Every Line of Visual Selection
- Vim yanking range of lines
- Is there an interactive way to learn Vim? [closed]
- Find and Replace within selection in `vi`
- How to navigate in large project in VIM
- VIM: How can i open a file at right side as vsplit from a left side NerdTree panel?
- Vim – yank into search register
- How do you prefer to switch between buffers in Vim?
- How to do column editing in vim?
- Opening files in Vim using Fuzzy Search
- Undo all changes since opening buffer in vim
- Is it worth investing time in learning to use Emacs?
- In vim, how do I highlight TODO: and FIXME:?
- In vim, how do I highlight TODO: and FIXME:?
- How do I delete the last character in each line using vim
- How to save all files in tabs on Vim?
- In vim, is there a plugin to use % to match the corresponding double quote (“)?
- How to edit a diff/patch file cleanly ? Are there any patch file editors?
- Automatically scroll screen in vim when near top/bottom?
- Align text on an equals sign in vim
- How to merge two multi-line blocks of text in Vim?
- How to jump directly to a column number in Vim
- How to change the cursor between Normal and Insert modes in Vim?
- Search and replace in Vim across all the project files
- Opening Vim help in a vertical split window
- How to detect if a specific file exists in Vimscript?
- Renaming or copying files and folder using NERDTree on Vim. Is it possible?
- Vimscript : What is the difference between let g: , let b: , etc.?
- Move cursor x lines from current position in vi/vim
- Go to n-th symbol in line
- How do you yank X number of characters in vim?
- To open files in Grep’s output to Vim’s -o -mode
- Vim keep cursor location while scrolling