vim for python projects

moron here. what are the must-have plugins to work effectively with larger python projects? here's what I have right now:
>YouCompleteMe
>ALE
>jedi
>supertab
>nerdtree
>vim-floaterm

Shopping Cart Returner Shirt $21.68

DMT Has Friends For Me Shirt $21.68

Shopping Cart Returner Shirt $21.68

  1. 2 months ago
    Anonymous

    >needing plugins
    LMAO. Just use stock vi.

    • 2 months ago
      Anonymous

      i started using a whole IDE after i got tried of looking up documentation instead of the completion suggestions telling me which methods exist for a library class

      • 2 months ago
        Anonymous

        it's simple. ditch vim in favor of neovim and install an lsp, you'll have the exact same completion/doc preview than vscode. also you might want to look into some git integration plugins

        • 2 months ago
          Anonymous

          >Git integration
          I think fugitive is top shelf for that
          https://github.com/tpope/vim-fugitive
          Basically the Vim equivalent to Emacs' Magit

          I almost never do git stuff on my terminal anymore, I just do it from vim

    • 2 months ago
      Anonymous

      >Just use stock vi.
      LMFAO. He doesn't use ed

  2. 2 months ago
    Anonymous

    >plugins for vim
    if you are going to treat vim like that better use vscode

  3. 2 months ago
    Anonymous

    install pyright
    https://github.com/microsoft/pyright
    >Static Type Checker for Python
    it's a language server so you'll need a proper client to work with it. I never had any luck in getting YouCompleteMe to work until I switched to neovim

  4. 2 months ago
    Anonymous

    only mouth breathers use plugins in vim. Use vim as a text editor. If you need more get an IDE. Subhuman moron.

  5. 2 months ago
    Anonymous

    set nu
    set syntax on
    set autocommand so that if you press the key, a file is run
    download ipdb and set autocmmand so that you debug the file when you press a key
    learn how to use netrw (just press :E and it will open for file navigation)
    use this to check for syntax errors when saving without having to use an lsp/syntax checker:

    https://gist.github.com/romainl/ce55ce6fdc1659c5fbc0f4224fd6ad29
    set so that one tab equals for blank spaces
    create a python file with common keywords, then use the native autocomplete features in vim (ctrl-n, ctrl-x-l)

    congrats you can now stop configuring and start coding

  6. 2 months ago
    Anonymous

    >omg vscode is bloat, gonna use vim
    >configures it to use so many plugins that it uses more RAM than vscode

  7. 2 months ago
    Anonymous

    Watch this anon. Thank me later

  8. 2 months ago
    Anonymous

    All you need is pep8-indent. Most of that other crap can be done with built in Vim features.

  9. 2 months ago
    Anonymous

    maybe this is no-starter for you, but I just moved to emacs with evil, but only for projects where I need completions etc, all normal things I still do in vim

  10. 2 months ago
    Anonymous

    All I have for python is venv-selector.nvim

    Don't use nerdtree btw. This is not an opinion either. If you're going to turn vim into vscode just use vscode.

  11. 2 months ago
    Anonymous

    >surround.vim
    >commentary.vim
    >ctrlp.vim
    >niceblock.vim

    All of these should just be built ins but aren't, so instead they're required plugins. Anything else is memes

    • 2 months ago
      Anonymous

      tpope puts out bangers. I'm a big fan of abolish too. :Subvert is slept on so much
      For instance:
      :Subvert/child{,ren}/adult{,s}/g

      This will replace any instance of child with adult, and any instance of children with adults, all in one swoop.

      My favorite meme I think is peekaboo
      https://github.com/junegunn/vim-peekaboo
      I use registers a lot and I often forget what each holds, so this just adds a handy display whenever you get ready to yank or paste something from them. Beats having to constantly type :reg

      >niceblock
      sell me on it

      For party tricks involving visual mode I like vissort. Lets you use visual blocks to sort lines. Vim's native sort only does line-based sorting, but with vissort you can change the order of lines based on an arbitrary column instead
      https://vim.fandom.com/wiki/How_to_sort_using_visual_blocks

      • 2 months ago
        Anonymous

        Didn't know about peekaboo, super simple and useful, thanks.

        Some simple plugins that may fly under people's radars:
        https://github.com/nacro90/numb.nvim - live jump to line number while typing :<line number>
        https://github.com/LunarVim/bigfile.nvim - disable other plugins when file size is over some number

        >surround.vim
        >commentary.vim
        >ctrlp.vim
        >niceblock.vim

        All of these should just be built ins but aren't, so instead they're required plugins. Anything else is memes

        commentary is built in in nvim 0.10

      • 2 months ago
        Anonymous

        All niceblock does it make it so if you want to append to or insert to the start of multiple lines with the visual modes, you can use standard visual mode or visual line mode. By default you can only do this in visual block mode. Appending in the other two modes by default is completely useless without this plugin even though highlighting several lines then appending to all of them seems like it should "obviously" work.

Your email address will not be published. Required fields are marked *