Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rafaelrinaldi/vimfiles

:zap: My Vim setup
https://github.com/rafaelrinaldi/vimfiles

Last synced: 14 days ago
JSON representation

:zap: My Vim setup

Awesome Lists containing this project

README

        

# vimfiles

> My Vim setup

## Install

```sh
$ git clone [email protected]:rafaelrinaldi/vimfiles.git
$ cd vimfiles
$ sh install.sh
```

## Setup

* Before doing anything it will create a backup at `/tmp/vim_backup` so you can restore from there if needed
* You have the option to use :sparkles: [Neovim](http://neovim.org) :dizzy: instead of Vim (it'll take care of making it work properly)
* If [Homebrew](http://brew.sh) is available, will try to update the editor to its latest version
* Uses [Vundle](https://github.com/VundleVim/Vundle.vim) to manage plugins (including Vundle itself)
* Automatically download and installs Vundle plugins
* Supports GUIs making all visual configuration look consistent

## Enabling italic in iTerm2 and Vim

* Copy the [`xterm-256color-italic.terminfo`](/xterm-256color-italic.terminfo) file to your `$HOME`
* Make sure you have italics enabled in iTerm2:
![iterm2-italics](./iterm2-italics.png)
* Process the file with `tic`:
```sh
$ tic $HOME/xterm-256color-italic.terminfo
```
* Report new terminal type in iTerm2:
![iterm2-terminal-type](./iterm2-terminal-type.png)
* Make sure you export your `$TERM` properly. In [Fish](http://fishshell.com):
```fish
set -g TERM xterm-256color-italic
```
* If everything went well:
```sh
$ echo $TERM
xterm-256color-italic
```
* Now tell Vim how to render comments in italic:
```viml
" Make sure to add this after your theme setup
highlight Comment cterm=italic
```

Mad props to @alexpearce for the tip.

## Options

### `--no-symbols`

Do not add symbols to install the output.

## License

MIT © [Rafael Rinaldi](http://rinaldi.io)