Via command examples.
Example:
vim Specs.hs Ladder.hs
Switch to a file: :e Ladder.sh
.
Horizontally:
vim Specs.hs Ladder.hs -O
Vertically:
vim Specs.hs Ladder.hs -o
If needed, enable it: :syntax on
.
escape + u
:/wordToSearch
then type n
for next occurrence, shift + n
for previous one.
Globally: :%s/replaceThisWord/withThisOne/g
.
:x!
saves all files and quits.
:x | !runhaskell Specs
saves all files, quits and runs the command runhaskell Specs
.
:q!
quits without saving files.