HomeToolsAbout a20k

Vim

Open file or directory

# Open `file_name` in editor mode vim file_name # Open `file_name` file from home directory in Vim vim ~/.file_name # Open current directory in browser mode vim .

Buffer and Navigation

Buffer

# Go to previous buffer (go back to directory where the file was opened from) :b#

Navigate to the previous file (alternate file)

ctrl + shift + 6

Directory Navigation

Start an instance of directory navigation in current folder.

This files in this mode are also searchable using /file_name

:E
# Start a vertically split navigation panel :Vex # View current directory files :ls # Search for a matching file name in the current directory :find **/filename<tab>

In Windows, navigate to another drive

:edit D:\

File Content Navigation

Line jumps

# Move to end of line $ # Move to beginning of line ^ # Edit from the end of the line A # Edit from the beginning of the line I

Paragraph jumps

# Move to previous paragraph { # Move to next paragraph }

Plugin Commands

Start fuzzy matcher

vim -o fzf

Text Wrap

# wrap text in vim :set wrap linebreak # unwrap text in vim :set wrap!
© VincentVanKoh