3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vimを使ったErlang開発

3
Last updated at Posted at 2014-11-20

# [こちらの投稿をどうぞ。[Erlang 開発専用 Vim 設定]](http://qiita.com/yuitowest/items/ce0b419828ee48603bb8)




このドキュメントは…

このドキュメントは現在書きかけです。
2014年12月の初旬には仕上げたいと思っています。

vim-erlang

NeoBundleで以下のライブラリを入れればOK。

ライブラリ名 概要 便利度
vim-erlang/vim-erlang-runtime シンタックスとハイライト 5
vim-erlang/vim-erlang-omnicomplete オムニ補完 4
vim-erlang/vim-erlang-tags タグジャンプ ?
vim-erlang/vim-erlang-compiler ?
vim-erlang/erlang-motions.vim ?
vim-erlang/vim-rebar vim内でrebarコマンドが実行できるようになる 2
vim-erlang/vim-dialyzer vim内でdialyzerのコマンドが実行できるようになる 2
vim-erlang/vim-erlang-skeletons テンプレートを呼べる 2

vimの再コンパイル

上記設定を入れるとvimの再コンパイルが必要になる場合がある(特にif_luaとpython)。

その時のconfigureのオプションは以下のとおりである。

sudo ./configure --enable-multibyte --with-features=huge --disable-selinux --prefix=/usr/local --enable-luainterp=yes --with-lua-prefix=/usr --enable-pythoninterp

設定

" erlangのシンタックスハイライト
NeoBundle 'vim-erlang/vim-erlang-runtime'
" erlangのオムニ補完
NeoBundle 'vim-erlang/vim-erlang-omnicomplete'

""""" erlang用設定 """"""""
" erlファイルをerlangとして認識する
au BufNewFile,BufRead *.erl setf erlang
au FileType erlang setlocal errorformat=%f:%l:\ %m

" オムニ補完を<C-f>で
imap <C-f> <C-x><C-o>

参考

  1. vim-erlang@github
  2. 参考設定@gist
    • vim-erlang/vim-erlang-runtime
    • vim-erlang/vim-erlang-omnicomplete

表題には全然関係ないが、改めて設定ファイルを作るときに知ったこと

キーバインドの確認

:help index.txt

で現在割り当てられているキーの一覧を取得できる。

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?