Home

Awesome

vim-erlang-omnicomplete

vim-erlang-omnicomplete is an Erlang autocompletion plugin for Vim.

Table of Contents

Installation

<details> <summary>Vim's built-in package manager</summary>

This is the recommended installation method if you use at least Vim 8 and you don't use another package manager.

Information about Vim's built-in package manager: :help packages.

Installation steps:

  1. Clone this repository (you can replace foo with the directory name of your choice):

    $ git clone https://github.com/vim-erlang/vim-erlang-omnicomplete.git \
          ~/.vim/pack/foo/start/vim-erlang-omnicomplete
    
  2. Restart Vim.

  3. Generate help page (replace foo with the same directory name as above):

    :helptags ~/.vim/pack/foo/start/vim-erlang-omnicomplete/doc
    
</details> <details> <summary>Pathogen</summary>

Information about Pathogen: Pathogen repository.

Installation steps:

  1. Clone this repository:

    $ git clone https://github.com/vim-erlang/vim-erlang-omnicomplete.git \
          ~/.vim/bundle/vim-erlang-omnicomplete
    
  2. Restart Vim.

  3. Generate help page:

    :Helptags
    
</details> <details> <summary>Vundle</summary>

Information about Vundle: Vundle repository.

Installation steps:

  1. Add vim-erlang-omnicomplete to your plugin list in .vimrc by inserting the line that starts with Plugin:

    call vundle#begin()
      [...]
      Plugin 'vim-erlang/vim-erlang-omnicomplete'
      [...]
    call vundle#end()
    
  2. Restart Vim.

  3. Run :PluginInstall.

</details> <details> <summary>Vim-Plug</summary>

Information about Vim-Plug: vim-plug repository.

Installation steps:

  1. Add vim-erlang-omnicomplete to your plugin list in .vimrc by inserting the line that starts with Plug:

    call plug#begin()
      [...]
      Plug 'vim-erlang/vim-erlang-omnicomplete'
      [...]
    call plug#end()
    
  2. Restart Vim.

  3. Run :PlugInstall.

</details>

Quick start

  1. Open an Erlang source file.

  2. Start typing something (e.g. li or io:fo).

  3. Without leaving insert mode, hit CTRL-X and then CTRL-O.

  4. After at most a few seconds, you should see a list of completions.

Documentation

Development

File layout

This repository contains the following files and directories:

<!-- If you edit the list, please keep the alphabetical order. -->

Contributing

<!-- If you modify the list below, please keep the order with `:sort i`. -->