If you use Vim 8 or later, the recommended way is using Vim's built-in package manager:
git clone https://github.com/udalov/kotlin-vim.git ~/.vim/pack/plugins/start/kotlin-vim
- Vundle
- add
Plugin 'udalov/kotlin-vim'to your~/.vimrcand runPluginInstall.
- add
- Pathogen
git clone https://github.com/udalov/kotlin-vim ~/.vim/bundle/kotlin-vim
mkdir -p ~/.vim/{syntax,indent,ftdetect,ftplugin}cp syntax/kotlin.vim ~/.vim/syntax/kotlin.vimcp indent/kotlin.vim ~/.vim/indent/kotlin.vimcp ftdetect/kotlin.vim ~/.vim/ftdetect/kotlin.vimcp ftplugin/kotlin.vim ~/.vim/ftplugin/kotlin.vim- If you use Syntastic:
cp -r syntax_checkers/kotlin ~/.vim/syntax_checkers/ - Restart Vim