> For the complete documentation index, see [llms.txt](https://notes.mikaelsamvelian.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.mikaelsamvelian.com/macos-setup/iterm/vim.md).

# VIM

### Installation <a href="#installation" id="installation"></a>

To install the latest version, use homebrew:

```
brew install vim
```

### The Ultimate vimrc <a href="#the-ultimate-vimrc" id="the-ultimate-vimrc"></a>

[The Ultimate vimrc](https://github.com/amix/vimrc) it's a collection of vimrc configurations to make easy the usage of vim.

To download the The Ultimate vimrc, you need to install the git client. If you need install it, use home brew:

```
brew install git
```

Now, download the vimrc files:

```
git clone https://github.com/amix/vimrc.git ~/.vim_runtime
```

To install the complete version, run:

```
sh ~/.vim_runtime/install_awesome_vimrc.sh
```

To install the *basic* version, run:

```
sh ~/.vim_runtime/install_basic_vimrc.sh
```

#### Update <a href="#update" id="update"></a>

To update the vimrc scripts, run:

```
cd ~/.vim_runtime && git pull --rebase && cd -
```

### Maximum Awesome <a href="#maximum-awesome" id="maximum-awesome"></a>

[Maximum Awesome](https://github.com/square/maximum-awesome) it's a collection of vim configuration and plugins, like a configuration manager for the vim environment.

#### Installation <a href="#installation" id="installation"></a>

To install it, just make a clone of the repository with the git client:

```
git clone https://github.com/square/maximum-awesome.git
```

Then install it:

```
cd maximum-awesome
rake
```

> **NOTE:** the rake command will install all dependencies needed.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://notes.mikaelsamvelian.com/macos-setup/iterm/vim.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
