udalov / kotlin-vim

Kotlin plugin for Vim. Featuring: syntax highlighting, basic indentation, Syntastic support
Apache License 2.0
630 stars 52 forks source link

Enable `gf` on import statements #26

Closed justfortherec closed 2 years ago

justfortherec commented 5 years ago

The gf command opens files under the cursor. This change configures the kotlin filetype to enable this command on import statements by replacing dots and appending the file extension.

The functionality is copied from ftplugin/java.vim as distributed in vim source code.

udalov commented 2 years ago

Thanks! Merged. (I've removed the comment since I believe these options are self-explanatory with a little bit of :help.)