[vim](https://www.vim.org/) is a text editor available in [[Bash]]. Use vim to explore file contents and make changes if needed. When developing in a cloud environment, you may need vim to read and edit files when an [[IDE]] is not available. An alternative to vim is [[nano]].
To open vim in read only mode, type
```bash
vim <filename>
```
To make changes, step into insert mode by pressing `i`. To save changes, first hit `Esc` to step into command-line (Normal) mode and then `:x` to save and exit.
To quit, first hit `Esc` and then type `:q` or `:quit` to quit.
> [!Tip]- Additional Resources
> [Learn vim with the game vim-adventures!](https://vim-adventures.com/)
> [Use Vim Like A Pro](https://leanpub.com/VimLikeAPro)
> [Vim User Manual](https://vimdoc.sourceforge.net/htmldoc/usr_toc.html)