vim

Introduction

Scripts

vim has scripts as opposed to ed/vi

page on vim script around

folding text

Text highlighting

Line wrapping

Can turn on or off with:

:set wrap
:set unwrap

Splitting window

Split horizontal.

:split

Split vertical

:vsplit

to navigate between windows

ctrl-W h/j/k/l

to resize

ctrl-W +-<>

to reset sizes

ctrl-W =

to swap window position

ctrl-W HJKL

Terminal

to verical split and add terminal to top on

:term

File tree

To explore file tree in command mode:

:Explore

Opening other files

As in vi we can do

:e[dit] FILE_PATH
:vi[sual] FILE_PATH

However these now support autocompletion.

In addition we can also use, but this seems like a legacy feature?

:open FILE_PATH