# Commands
| Command | Key combination |
| ------------------------- | --------------- |
| Insert mode | `a` |
| Command mode | `esc` |
| Save | `:w` |
| Quit | `:q` |
| Quit without saving | `:q!` |
| Save and quit | `:wq`, `:x` |
| Delete from cursor to EOL | D |
| Delete line | `dd` |
| Search for word | /word |
| Select character | v |
| Select line | V |
# Open Two Files Side-by-Side
Split horizontally:
```bash
vim -o <file1> <file2>
```
Split vertically:
```bash
vim -O <file1> <file2>
```
switch between panes with `ctrl w w`