https://kotlinlang.org logo
Join SlackCommunities
Powered by
# vim
  • h

    hunter

    05/08/2018, 2:53 PM
    @pardom thanks! Yeah I’m transitioning to another company (away from Clojure/Clojurescript [unfortunately]) and to Kotlin / JS / React. I know they’re all using IntelliJ over there and figured I’d go that route…
  • p

    pardom

    05/08/2018, 2:54 PM
    Yeah, IntelliJ + Vim Emulation is pretty terrific. I do use Vim for browsing Kotlin code or making quick edits, though.
  • h

    hunter

    05/08/2018, 2:59 PM
    Yeah that’s what I figured I’d be doing. That’s awesome, I appreciate the heads up. I don’t think I could hack it without a little vim in my life…. 😉
  • h

    hunter

    05/08/2018, 7:01 PM
    @pardom another stupid question, I’ve never used IntelliJ, does everyone have to purchase it [or subscribe]? I’m sure my new job will, but for personal use I’m still a little confused. And honestly a little lazy just looking at their offerings…
  • p

    pardom

    05/08/2018, 7:02 PM
    No, the Community Edition is free and has just about anything you’ll want.
  • p

    pardom

    05/08/2018, 7:02 PM
    If you require plugins for frameworks like Spring, you’ll need the paid version.
  • h

    hunter

    05/08/2018, 7:12 PM
    Gotcha! Thanks for the tip, much appreciated!!
  • h

    hunter

    05/08/2018, 7:13 PM
    (definitely scared of living in a vim-less world over here)
  • j

    jacob

    05/21/2018, 12:08 AM
    @hunter you should check out https://github.com/Valloric/dotfiles/blob/master/intellij/ideavimrc and https://github.com/junegunn/dotfiles/blob/master/ideavimrc for some ideas on how to manage it
  • h

    hunter

    05/21/2018, 8:36 PM
    @jacob nice thanks!
  • j

    jacob

    06/16/2018, 8:53 AM
    ok, thanks to some pretty brilliant work from fwcd and georgewfraser, I've managed to use their languageserver impl to get autocompletion and errors etc. in vim now: https://github.com/fwcd/KotlinLanguageServer
    👏 1
  • p

    pardom

    07/26/2018, 3:14 PM
    I’m using this plus https://github.com/prabirshrestha/vim-lsp/
  • p

    pardom

    07/26/2018, 3:15 PM
    https://github.com/pardom/dotfiles/blob/master/vimrc#L108-L118
  • o

    oday

    07/21/2019, 2:22 PM
    hi
  • o

    oday

    07/21/2019, 2:22 PM
    I actually joined here just for asking about the Langauge Server and how to successfully have it running in vim
  • o

    oday

    07/21/2019, 2:23 PM
    is installing the plugin through Vundle not enough? like here https://vimawesome.com/plugin/kotlinlanguageserver
  • o

    oday

    07/21/2019, 2:26 PM
    do I still have to go through this? https://github.com/fwcd/KotlinLanguageServer/blob/master/BUILDING.md
  • g

    Gopal S Akshintala

    05/12/2020, 1:33 PM
    Is there a way to find out and configure, which version of Kotlin does this language server uses? https://github.com/fwcd/kotlin-language-server
  • h

    Hans Ellegard

    10/08/2020, 8:07 AM
    I'm using https://github.com/fwcd/kotlin-language-server, mostly for code completion, and I noticed that for me, the language server doesn't find any
    kotlin.test.*
    imports. I thought I would open an issue on the github page, but to be a bit more constructive, I also thought I would try to fix the issue, offering up a pull request. From what I can see in the server code, the server both checks the project files (I'm using Gradle) and the installation path of
    kotlinc
    to find dependencies to add to the analyzer's classpath, but I'm unsure of the order and conditions for this process. Could someone give me a hint? Btw, if someone knows of a better chat channel for kotlin-language-server questions, either in this Slack or somewhere else, please provide it and I'll go there instead.
  • o

    oday

    10/17/2020, 7:10 AM
    this is nice http://karolis.koncevicius.lt/posts/porn_zen_and_vimrc/
  • o

    oday

    10/17/2020, 7:10 AM
    wondering what the heck is going on with the second tip, it doesn’t read like it would do what its description says
  • o

    oday

    10/17/2020, 7:15 AM
    you write Kotlin for the server @Hans Ellegard?
    h
    • 2
    • 2
  • k

    Karsten Gebbert

    11/04/2020, 7:43 AM
    Hi all! I'm quite happily using kotlin-vim (with coc set up) but there is one annoying thing, I wonder if others are seeing this also:
  • k

    Karsten Gebbert

    11/04/2020, 7:43 AM
    Basically, with triple-quoted multi-line strings containing json the highlighting fails.
  • k

    Karsten Gebbert

    11/04/2020, 7:44 AM
    While this is something I could live with normally, it has an effect on other plugins I do rely on a lot, like vim-easy-align.
  • k

    Karsten Gebbert

    11/04/2020, 7:45 AM
    Does anyone know this problem, and maybe a fix for it?
  • k

    Karsten Gebbert

    11/04/2020, 7:47 AM
    It must have to do with the quoting, because if I just use some "regular" text like lorem ipsum the problem doesn't show.
  • k

    Karsten Gebbert

    11/04/2020, 8:17 AM
    fwiw this helps: https://stackoverflow.com/questions/27235102/vim-randomly-breaks-syntax-highlighting
  • s

    smichel17

    09/02/2021, 1:50 PM
    In java,
    import foo.bar.Baz
    tells me that I can find the
    Baz
    source code in
    …/foo/bar/Baz.java
    . However, in Kotlin I might have multiple classes per file, or maybe I'm importing an extension function, it's no longer clear which file I actually have to look in to find the definition. How do you handle this? This is really more of a #codingconventions question, but I suspect I'm going to get a bunch of "it doesn't bother me; I just
    <Ctrl-b>
    in IntelliJ"
    answers, whereas folks here might care more.
  • r

    Richard Glen

    10/26/2023, 1:28 PM
    I assume this is the channel for the ideavim plugin? Anyone knows how can I map normal mode in kotlin notebook to simply pressing "enter" key?