News for hackers. Stuff that matters.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by cletus on Saturday March 30, 2019 @11:52AM (#19530008)
I'm honestly confused at how much effort people spend on .vimrc and .emacs files to get poor versions of narrow slices of functionality that comes out of the box with the most basic of IDEs.

Want to dev in Rust? Get IntelliJ Community Edition (free) with the Rust plugin. I'm sure VSCode can do this too (personally I prefer Jetbrains products and have been using them for 15+ years).

You can of course use a tty-based text editor over an ssh connection and I use that for Linux servers I connect to of course. I just don't write code that way and don't know why someone would.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by sophacles on Saturday March 30, 2019 @12:16PM (#19530166)
I'm honestly confused at how much effort people spend on learning IDE menus to get inconsistent versions of narrow slices of functionality that just comes out of the box with most basic shells.

Want to customize your build? Just drop into shell and edit your scripts. Im sure $IDE can do this too (personally I prefer just fixing the relevant script, since finding obscure features 15 layers deep in some random menu got old 15+ years ago).

You can of course run some scripts via menu when you're in IDE, and I do it when I'm IDEing of course. I just don't limit my flexibility that way, and don't know why someone would.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by overgard on Saturday March 30, 2019 @03:21PM (#19531234)
As amusing as your response is, there's a pretty sharp distinction between discoverability in an IDE/GUI vs discoverability in Vim/bash. The former I can usually find the feature I'm looking for by clicking around a bit and see the keyboard shortcut for it for later use, and I can find features I didn't know existed. The latter I pretty much have to google everything that I haven't memorized
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by nickjj on Saturday March 30, 2019 @04:22PM (#19531597)
> As amusing as your response is, there's a pretty sharp distinction between discoverability in an IDE/GUI vs discoverability in Vim/bash.

I find it more time consuming to go through a bunch of menus and GUI windows to find something I'm trying to do vs being able to just run a command or Google for a command and run that instead.

Plus, for common actions with annoying to type syntax you can make a custom key bind (Vim) or alias (Bash). Then it becomes extremely easy to do once you memorize a single key bind.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by brandonmenc on Saturday March 30, 2019 @05:18PM (#19531921)
> I find it more time consuming to go through a bunch of menus and GUI windows to find something I'm trying to do vs being able to just run a command or Google for a command and run that instead.

Have you ever even used a modern IDE?

I don't think I've actually clicked on a menu item in IntelliJ like, ever. Not once.

I just press "shift shift" and get the the "search everywhere" dialog which searches everything including menus and customization preferences.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by nickjj on Saturday March 30, 2019 @07:14PM (#19532577)
> Have you ever even used a modern IDE?

Yes, I used PyCharm and RubyMine for over a year. The comment I was replying to said he was clicking around menu items to see what's available.

I don't really see a difference between using "search everywhere" vs using something like fzf with Vim (which lets you search through a ton of different things besides files).

But normally in my day to day I'm just hitting key binds or typing short commands without having to search for anything except files to open (which I could do with a sidebar instead, but I prefer fuzzy finding files based on typing out the name most of the time).

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by overgard on Sunday March 31, 2019 @04:33PM (#19538182)
The thing is though, you have to know enough to google it in the first place. I'm sure there's a lot of users of VIM that never use certain powerful features because they don't even know they exist; that happens in an IDE too but it's a lot less frequent because a button or a panel is a lot more obvious to go "hey what's that..".
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by nickjj on Monday April 01, 2019 @05:41PM (#19548604)
True, but you usually have at least some idea of what you want to do before you start Googling for something.

Vim's help command is also world class. It's just searching it is hard, but fzf.vim makes this easy, so you can literally type 1 word of what you want to learn more about and you'll find all sorts of results.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by Redoubts on Saturday March 30, 2019 @12:38PM (#19530314)
> how much effort people spend on learning IDE menus

I thought the point of a menu was you didn't have to learn much at all.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by darkpuma on Saturday March 30, 2019 @12:43PM (#19530352)
That's not how it actually works though. You've got what, half a dozen or more top level menus, with many submenus under those, and maybe even a third layer beneath that. And then you've got even more menus in the various subwindows anything in one of those menus might launch. Menus which again may have submenus.

And the worst part is you can't even run a text search on those menus!

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by brandonmenc on Saturday March 30, 2019 @01:35PM (#19530654)
> And the worst part is you can't even run a text search on those menus!

sigh

https://blog.jetbrains.com/idea/2009/06/find-action-saves-ti...

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by darkpuma on Saturday March 30, 2019 @03:36PM (#19531312)
That seems like a decent alternative to menus, motivated by exactly the fault with menus I was describing: "Instead of wasting your time searching the menus and toolbars in an attempt find out that action you need right now [...]"

That feature doesn't make menus better. It makes the IDE better, by giving you a way to avoid the menus, because [sigh] menus suck.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by brandonmenc on Saturday March 30, 2019 @05:11PM (#19531884)
emacs has menus too, you know.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by mcguire on Saturday March 30, 2019 @05:30PM (#19532000)
Emacs has command lookup, too.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by darkpuma on Saturday March 30, 2019 @05:31PM (#19532005)
So does gvim, and they suck too.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by Osiris on Saturday March 30, 2019 @01:43PM (#19530696)
I used that all the time. I rarely dig through menus. I hit Ctrl+shift+a and type in part of a command name. It makes discoverability really easy.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by chongli on Saturday March 30, 2019 @04:06PM (#19531493)
Isn't this effectively a more limited reimplementation of a shell?
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by meowface on Saturday March 30, 2019 @02:12PM (#19530839)
VS Code greatly simplifies the typical nested menu mess. Also, it has a pretty good vim mode.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by winrid on Saturday March 30, 2019 @01:34PM (#19530652)
I just use keyboard shortcuts...
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by closeparen on Saturday March 30, 2019 @06:27PM (#19532347)
I develop exclusively in Jetbrains IDEs these days, and never let the IDE control the build. A working Gradle or Make target is required for CI/CD anyway. Our projects are officially editor independent and each contributor can use whatever they want. It is nice to click in a test and run it, but you can do that from command line too.

What I do get is correct autocomplete, documentation hinting, inline git hunk visualization, inline linter and compiler output, go-to-definition that always works and sees through implicitly satisfied interfaces, language aware refactoring tools, well designed interactive debugger, etc.

Sure you can hand assemble this stuff in Vimrc, or you can buy a tool that’s already functional.

Just one feature alone - being taken directly to compiler error sites - has saved me so much stumbling around from back when I was trying to be a shell purist.

As I’ve gotten more senior, I’ve really come around to the importance of investing in tooling (whether build or buy), having high expectations for tooling support, and having low tolerance for frustration/tedium/trickery. Not just IDEs. The right interactive debugger output, profiler trace, custom visualization, etc. easily pays for itself vs. trial and error or trying to squint at the source + output and reason about it.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by fwip on Saturday March 30, 2019 @08:06PM (#19532805)
> being taken directly to compiler error sites

You're in luck - this killer feature doesn't even need a plugin in vim. Just type `:make` and you'll get taken to the first build error.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by jcelerier on Saturday March 30, 2019 @12:35PM (#19530292)
> Want to customize your build?

how often do you need that though ? for me it's less than 5% of my projects which need "special handling".

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by sophacles on Saturday March 30, 2019 @12:58PM (#19530452)
"customize your build" was probably a terrible example, but how about "customize your run environment"?

I do a lot of systems stuff that can affect fs/network/etc so i have lots of scripts when developing to get everything set up pristine (I guess I use the term script to also mean Dockerfiles or helper utilities too - basically something that execs a command provided by the OS :) ). Those are modified a lot as I add features or integrations, or fix bugs, or whatnot.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by lugg on Saturday March 30, 2019 @01:19PM (#19530577)
That's kind of an argument for why you don't need an IDE..
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by ilovecaching on Saturday March 30, 2019 @12:35PM (#19530293)
Amen. IDEs are a plague. I get interviewees all the time that only know programming through the lens of an IDE. They have no idea how anything works. They consistently do worse in interviews.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by Osiris on Saturday March 30, 2019 @01:46PM (#19530711)
I don't understand this comment. Source code is source code. The IDE doesn't write my code. What is an "IDE lens"?

I knew a guy with a heavily customized vim setup for development. He could write code without it because he was so used to his custom config. How is that any different?

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by Barrin92 on Saturday March 30, 2019 @03:45PM (#19531368)
>I don't understand this comment. Source code is source code. The IDE doesn't write my code. What is an "IDE lens"?

I have seen many people who have absolutely no idea how the Java compilation process works because they've never had to do it from the command line, but have interacted with it mostly through IDE tools that have abstracted almost everything away.

And when something actually breaks or is idiosyncratic enough for the IDE to not handle it, they end up very lost.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by zaphirplane on Saturday March 30, 2019 @10:16PM (#19533332)
Then they have some weakness around CD/CI, I would assume. That is much worse than not knowing how to build it from the command line
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by mcguire on Saturday March 30, 2019 @05:31PM (#19532006)
Raise your hand if you've ever seen a release process that includes "Export..."?
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by arnvald on Saturday March 30, 2019 @12:28PM (#19530248)
I sometimes find myself on the other side. I've been using Vim for close to 10 years. I rarely edit my .vimrc file now, mostly when I want to try out some new plugin or I'm using new library and want to improve some shortcuts.

From time to time I try to switch to IDE or another editor, but I easily get lost. I work on a big screen so I want to split my window into 2/3/4 parts to see multiple files next to each other. Vim has built in shortcuts for that and in my vimrc I added 2 lines to make custom shortcuts that are even simpler. How do I do it in Intellij? The most common way is to use mouse, which I find annoying since with Vim I'm able to use keyboard 100% of the time. There's also a way to add shortcut for that, but it's buried deep into settings (Settings -> Keymap -> Main menu -> Winddow -> Editor Tabs -> Split vertically / Split horizontally).

I guess what I'm trying to say is that what you consider "poor version of (...) functionality that comes out of the box with the most basic of IDEs" is enouh for me, and I've been coding in multiple languages over the last few years. On the other hand in other editors I have to slow down my development due to lack of good editing shortcuts or I have to invest significant amount of time into making sure that I can recreate these or similar shortcuts.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by Osiris on Saturday March 30, 2019 @01:48PM (#19530725)
Wait... You said you had to edit 2 lines of a config file to add shortcuts, so that means you have to know what file and the syntax. But, opening a menu and clicking "keymap" to add a shortcut is too hard?
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by arnvald on Sunday March 31, 2019 @12:15PM (#19536339)
I said that Vim has built-in shortcuts for that (from what I know, Intellij doesn't) and I added custom ones because I wanted a simpler one. It's a fair point that editing a config file might seem way more complicated than modifying settings in IDE, however now that I learned about existence of config file and a command to add new key mapping, I can customize every operation I use, while in IDE I have to look for a proper setting every time.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by mnbvkhgvmj on Saturday March 30, 2019 @04:20PM (#19531591)
The OP's config files are probably synced across all the servers and workstations they work with.. This is probably done using a familiar tool the OP already knew.

The IDE's config might be synced. If it is it probably uses a proprietary server.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by pavelrub on Saturday March 30, 2019 @12:38PM (#19530311)
You can easily incorporate the most widely used vim commands and shortcuts (including window splitting) in IntelliJ/PyCharm by installing their vim plugin.

You are then left with choosing between the comfort of using the subset of vim that isn't available through the plugin, and the comfort of using all the IDE features that aren't available in vim. I believe that for most people the latter will be far more productive.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by arnvald on Saturday March 30, 2019 @01:53PM (#19530744)
It's possible, it also might be a matter of preference. I find it hard to become productive with other editors, although I appreciate some features there that are hard to achieve in terminal Vim. It might be true that for most people it makes sense to user other editors. It's also possible that VSCode or Intellij make you productive immediately, but if you decide to learn and configure Vim, with certain time and effort you might beat that productivity. The latter seems to be true in my case, but I don't want to claim that it's a universal thing.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by going_to_800 on Saturday March 30, 2019 @12:10PM (#19530120)
I used most of the so called IDEs for 10 years, switched to vim+tmux 3 years ago and won't go back.

In those 3 years I spent 3-5 hours in total configuring my .vimrc to make it work exactly as I want.

I can compare directly my productivity using Vim and other IDEs and I'm like 50% more productive using Vim.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by farisjarrah on Saturday March 30, 2019 @06:43PM (#19532421)
I don't think that calling them "so called IDEs" is very helpful to the conversation. I am someone that uses vs code and vim and they are both very good at different things. Furthermore, the lines are even more blurred because vs code has an integrated terminal thats just a keyboard shortcut away. The line between terminal and "GUI" editor is not as clear cut as it once was. I did basically all my sysadmining at my last job for a year just in a web browser and VS code. Was sshing into machines and running vim to edit config files all through the integrated terminal in vs code, and it was pretty nice to have an open snippets file to paste commands into the terminal. Some people just wanna do some computing right now to solve problems and dont wanna tinker with learning vim. Its got a learning curve, and when you just need to run some R or Python functions against a production dataset to get your project done, I cant imagine that you would really wanna drop everything to set up vim right then. IDE's allow people to get working on problems quickly and they accomplish that task.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by freshm087 on Saturday March 30, 2019 @03:09PM (#19531161)
There are already a lot of replies, but let me sum it up: 1. People don't spend much effort on configuration unless they like the process. 2. You won't get "narrow slices" of functionality. You win at some things, you lose at others - similarly to situation when you compare programming languages. 3. "Comes out of the box" equally applies for a canned IDE, and for Emacs/Vim (it's not forbidden to download other guy's conf from github). The real difference is "sealed box" vs "open box". 4. You are not obliged to like other people's ways, but really do you believe that multitudes of experienced developers decided to suffer constantly while writing their code? Seriously?
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by root_axis on Saturday March 30, 2019 @12:58PM (#19530459)
> I'm honestly confused at how much effort people spend on .vimrc and .emacs files

I'm not sure how this criticism applies to the post; it's a single plugin that adds language-server capabilities that almost every IDE is using today.

> Want to dev in Rust? Get IntelliJ Community Edition (free) with the Rust plugin.

Alternatively, if you use vim, you can just as easily download the popular rust.vim plugin which was written specifically for vim by the rust development team.

poor versions of that comes out of the box with the most basic of IDEs.

The functionality isn't "poor" or in "narrow slices"; with few exceptions Vim is fully capable in terms of IDE features and actually exceeds what is possible with most IDEs individually. Products like the IntelliJ suite of editors will always have more "out of the box" features because their business model is selling IDEs with lots of features. IMO the vanilla editor + plugin model is superior because it allows you to select your features a la carte as they make sense for your workflow rather than being thrown into a bundle of different features, many of which you don't need and most of which you'll never use. With Vim, every feature is deliberate and the experience can be super lightweight or relatively heavy, but ultimately customizable to the point of perfection. Of course, tweaking Vim to be your perfect IDE takes time, but that's the tradeoff for a self-tailored experience vs one that was designed for you based on someone else's ideal workflow. There's nothing wrong with just picking something off the shelf and learning it, but some people want to optimize their workflow and most people end up switching IDEs over time anyway, so I think the idea that you can simply learn one thing and use it forever isn't typical.

> I just don't write code that way and don't know why someone would.

I prefer it because its fast, clean, open source all-the-way-down, and I can manage and access my entire development environment remotely from any machine, with full fidelity and capabilities. Tty applications also combine beautifully with tmux allowing me to arrange my editor into tight visual coordination with other commonly related tasks that are specific to the context of the files i'm editing (e.g. tailing logs, running binaries/scripts, copying/moving files). Additionally, tty applications tend to integrate very well with eachother since the designers tend to have an appreciation for the the unix philosophy.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by Osiris on Saturday March 30, 2019 @01:52PM (#19530741)
> you can just as easily download the popular rust.vim plugin

Is it really "just as easy"? The last time I tried to install plugins for Vim it was not easy. Vim doesn't have a plug-in manager built in while VS Code, in this case, does, and it's 2 clicks to install and restart.

I would consider vim more customizable but I would not consider it "easier".

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by root_axis on Saturday March 30, 2019 @04:29PM (#19531644)
https://github.com/junegunn/vim-plug

It's dead simple. No, it doesn't come out of the box, but it takes literally 5 minutes to install a plugin manager and you only have to do it once; afterwards, installing, updating or removing plugins takes literally seconds.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by arnvald on Saturday March 30, 2019 @02:05PM (#19530809)
You're right, basic Vim or Neovim are definitely not easier, especially that you have multiple packages to choose from.

I believe it's easier to start with one of existing Vim configurations like Janus[0] or spf13-vim[1]. I tried a couple of such frameworks and they helped me a lot. They come with set of packages for navigation, fuzzy finding, as well as with some package manager. They're also quite easy to install.

[0] - https://github.com/carlhuda/janus/ [1] - https://github.com/spf13/spf13-vim

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by cfcosta on Saturday March 30, 2019 @02:28PM (#19530928)
There are vim packs on vim8, and neoplugin, vundle, vim-plug.

Easy to add new plugins, update and so on. And it’s usually just download one file to make it work.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by sjellis on Saturday March 30, 2019 @12:43PM (#19530350)
"I'm honestly confused at how much effort people spend on .vimrc and .emacs files to get poor versions of narrow slices of functionality that comes out of the box with the most basic of IDEs."

I think that it's the other way around: people don't want to lose the editing experience that they already have by switching to another environment that might have some other benefits. For some people, that means an environment that they've tuned to their own requirements over years, and for others, it's just the core interaction model.

For me, I like modal editing, and the Vim commands are now automatic, but I have no attachment to any implementation of these, so I use the stock Vim on CLI, and VS Code with the Vim extension everywhere else to get modern features without losing the aspects of Vim that I really care about.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by barberousse on Saturday March 30, 2019 @06:05PM (#19532201)
> I just don't write code that way and don't know why someone would.

I mean what is the point of this comment if you don't know? What comparative warrant is there to even discuss? Having attempted to move to Sublime, Atom, VS Code with their respective Vim extensions is _not_ the same thing if you understand how to vim, so mucking around in your respective $GUI_EDITOR's Vim mode is never going to be a symmetrical experience, not even in a "good enough" way cause you always end butting up against the inherent design of the $GUI_EDITOR. It's true that vimscript, package management, etc could stand to be given a second look, but those things aren't showstoppers and have no bearing on the central value proposition.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by wincent on Saturday March 30, 2019 @12:44PM (#19530360)
It's true that it can be a lot of effort. But it is amortized over time. I personally don't tell anybody to run out and install tmux + vim — they'd either spend countless hours configuring it, or they'd grab an out-of-the-box config from somebody else and not really understand it, or they'd limp along with a basic and not-very-optimized config — but it's a valid path for those who really want to take it. For those who don't, installing VSCode and getting up and running quickly is a totally rational and defensible choice.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by goerz on Saturday March 30, 2019 @12:02PM (#19530069)
IDE’s don’t run in terminals, and the main benefits of terminals are consistency, power, and speed. Plus, at least in scientific computing, you generally have to develop and deploy code on remote workstations or HPC clusters, so an SSH-based workflow is a given.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by atomi on Saturday March 30, 2019 @12:04PM (#19530088)
Loaded with plugins Vim is slower than VSCode on my machine. But I do use Vim, plain, on remote systems.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by goerz on Saturday March 30, 2019 @12:11PM (#19530131)
Vim startup should be nearly instantaneous (<<1sec). If it’s not, something is broken. You can do `vim --startuptime profile.log` to find out what’s going wrong.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by ma2rten on Saturday March 30, 2019 @05:14PM (#19531900)
Right. Also vim8 and neovim have async which should allow plugins to do things in the background.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by darkpuma on Saturday March 30, 2019 @06:05PM (#19532202)
Most plugins lazyload themselves too. I haven't had perf trouble with vim in years.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by dwoot on Saturday March 30, 2019 @12:32PM (#19530269)
I'm in the camp where too many plugins (while nice for particular languages) is a crutch. I'd like to still be able to use it when my plugins aren't present on remote machines. It's part of the reason why I had, a one point, used the easy-motion plugin, but dropped it. Does it make things more cumbersome? A tad, but it forced me to build up a better workflow around it.

I'm also wondering when the last time you've used Vim was, because async plugin execution is now a thing, but I switched to NeoVim a while back it's fast.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by chessturk on Saturday March 30, 2019 @05:44PM (#19532070)
I'm really careful to not change standard settings, so when I'm remote only cosmetic things change (linting underline, autocomplete). If I do change something standard, then it should be obvious what the original command was (<C-w> to <leader>w)
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by asaddhamani on Saturday March 30, 2019 @12:10PM (#19530124)
That has been my experience. Out of the box Vim is fast sure, but when you add plugins for the thousand and one missing functionalities you get OOTB with VSCode etc., it begins to really slow down.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by nickjj on Saturday March 30, 2019 @04:38PM (#19531699)
Vim with ~40 plugins loads in about 1 second for me and that's inside of WSL too, which is a heck of a lot slower than native Linux. That's on a 5 year old i5 3.2ghz too.

My vimrc is at: https://github.com/nickjj/dotfiles/blob/master/.vimrc

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by chessturk on Saturday March 30, 2019 @05:14PM (#19531899)
I'm using NeoVim which might explain the difference, but VSCode is slow to boot and laggy when running on my Ubuntu 18 box. Nvim has never been either.

At work, on OSX, VSCode has been fine though. Still, I've never run into a situation where nvim is slower. And I use a good many plugins (deoplete, ALE, ctrlp, fzf, and 5 sets of language specific plugins).

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by sodapopcan on Saturday March 30, 2019 @04:07PM (#19531500)
I just enjoy vim, and I enjoy customizing vim. Customization is a hobby I do on my own time, so I don't need any of these "you get slowed down having to customize" arguments.

I work mostly in ruby and the vim ruby experience is great. I have spent a year watching coworkers work in RubyMine and there isn't much it provides that I can't do (literally) just as well in vim. In fact the navigation tools are superior in vim as far as I'm concerned. RubyMine does have better project wide refactoring support, but with ruby being a dynamic language, you still have to go and check every file that changed to make sure it did the right thing anyway.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by veryworried on Saturday March 30, 2019 @12:49PM (#19530383)
I cringe when I see these kind of comments because for the heavy vim users it becomes clear the OP simply doesn’t get vim.

The uninitiated always stumble around with vim like bumbling bafoons wondering why anyone would use something so antiquated, but in the right hands vim becomes an elegant weapon for coding at the speed of thought.

A pity that for want of a GUI, most will never feel the power.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by dbalatero on Saturday March 30, 2019 @11:54AM (#19530017)
I prefer the tight terminal integration I get with vim and tmux. I've tried vscode+vim but never felt as fluid.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by adrianhel on Saturday March 30, 2019 @12:52PM (#19530417)
I prefer Vim with iTerm panes. Much easier to use.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by gfiorav on Saturday March 30, 2019 @12:41PM (#19530335)
People ignore this fact: if you're terminal-based, you OS independent. You can work out of ssh. Really handy-dandy sometimes. Depends on your role, of course.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by fatbird on Saturday March 30, 2019 @12:35PM (#19530294)
Much like how I've configured my syntax colouring (very limited), the fact that vim isn't an IDE becomes a virtue. For the few code-helper tasks I want, it's there, but mostly it gets out of my way.

I use VS Code sometimes, and got it configured to run unit tests on live code and constantly report on passing, and then I went back to vim. I don't need a herd of assistants begging for my attention, and it hurts my productivity.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by asaddhamani on Saturday March 30, 2019 @12:09PM (#19530109)
I know right? I don't get all the hype, honestly. I've been using JetBrains products too, and they blow everything else out of the water. Even VSCode is good (though nowhere near as good as JetBrains, atleast in terms of Intellisense).

I tried looking into Vim / NeoVim a few times to understand what all the hype was about.

I had to install:

* Fugitive * Nerd tree * Airline * YouCompleteMe * Emmet

And I don't remember how many other plugins just to get a halfway decent editor experience. I get using Vim if you're SSHed to a server, but otherwise it feels like intentionally handicapping yourself. In case you find yourself needing keyboard based navigation, I'm pretty sure Command+P is much better than anything Vim could offer for quickly opening files, and there's a Vim plugin for VSCode for moving around in files.

I will probably get heavily downvoted for saying this, I know. But if someone feels like enlightening me instead, please do so.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by goerz on Saturday March 30, 2019 @12:23PM (#19530218)
JetBrains IDEs are very good indeed, and if they (or VSCode) work for you, you should use them. There's some features in these IDEs that are better than what's available with vim/tmux, and the other way around. In either case, with sufficient motivation, any feature can be implemented in the terminal, or in a good IDE. It pretty much comes down to how much your workflows are remote-based, how tied-in you are to a terminal environment in general, and personal preference (like not wanting to touch a mouse).

If you're used to IDE's it's doubtful you'll appreciate vim by "trying it out" for a weekend. The learning curve is much too steep for that. Conversely, if you've used vim and terminal tools on a daily basis for >15 years, you probably won't have much motivation to switch to GUI-based IDEs.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by alpaca128 on Saturday March 30, 2019 @06:00PM (#19532160)
I'd say you are focusing on plugins far too much before you've realised what Vim is even capable of.

I've been using (Neo)Vim for a couple years now and only regularly use 6 plugins that actually do something, and 2 additional ones for the eyecandy. All the rest is just a matter of knowing the features that already come in Vim, and efficient keybindings for them.

Also, Vim isn't something where you can just jump in for a test drive. You never stop learning Vim and it takes time. But once you get hooked you won't use any other editor without a Vim plugin, no matter where you end up eventually.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by Entalpi on Saturday March 30, 2019 @12:50PM (#19530394)
For me the hype is using the keyboard for everything, in the same way, regardless of platform.

That being said I have spent tens of hours trying to get everything just right in Spacemacs.. and some things dont work still.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by thekelvinliu on Saturday March 30, 2019 @01:34PM (#19530651)
this. i would seriously consider switching to jetbrains/vs code if kb-only navigation was possible. not just in the editor, but between all the integrated panes and menus too.

if this is possible... please teach me! i searched online and only found articles about enabling basic vim keybindings and gave up after that tbh.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by kurtisc on Saturday March 30, 2019 @12:56PM (#19530443)
Given that you installed Airline - which does absolutely nothing useful - I imagine you just got distracted by the red herring of people's lists of plugins instead of just trying to grok vim.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by darkpuma on Saturday March 30, 2019 @04:26PM (#19531622)
Airline's tabline extension is useful I think. Nice to have at least.

But yeah, airline is mostly just eyecandy.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by kitotik on Saturday March 30, 2019 @12:25PM (#19530231)
“I tried looking into Vim / NeoVim a few times to understand what all the hype was about.”

Is vim really getting hyped anywhere? If so that must be one of the longest running hype trains in tech.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by sophacles on Saturday March 30, 2019 @12:42PM (#19530339)
It's there more or less all the time in the background. Every 2-3 years you'll see a resurgence in "Why I vim" posts. It's also part of the shell world. Usually it's tied to new waves of tooling...

* A new language or paradigm comes out

* Clicky tool makers (IDE, management software, etc) can't really keep up with the rapid change, and they aren't sure if this will catch on, so they don't make great tools for it. People have to use the cli tools to take advantage of all the features.

* Since folks are already in the shell, they want to make their environment better, so new folks are introduced to shell stack, and new customization options for tmux or shell or vim come out.

* Eventually if the thing catches on Clicky tool makers catch up and the shell scene quiets down a bit - people abandon shell stack for clicky tools if that's their preference, and the new shell converts integrate with the broader "shell folks community". (That community is always there, just quietly using the relatively stable interfaces in the background).

* At some point a new language or paradigm comes out...

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by Redoubts on Saturday March 30, 2019 @12:36PM (#19530297)
It's as hyped as tiling window managers.
Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by bpizzi on Saturday March 30, 2019 @01:00PM (#19530466)
> I'm pretty sure Command+P is much better than anything Vim could offer for quickly opening files

Actually, you're wrong here: https://github.com/kien/ctrlp.vim.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by patrickdavey on Saturday March 30, 2019 @02:51PM (#19531069)
Actually you're both wrong ;)

https://github.com/junegunn/fzf.vim

Fzf is an incredible fuzzy finder, integrates into your shell really well (history search is brilliant) and the wrapper in vim is lightning fast.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by nickjj on Saturday March 30, 2019 @04:43PM (#19531724)
I used VSCode for over a year and recently switched to Vim.

Ctrl+P inside of VSCode is way way way slower than fzf with Vim. Even Ctrl+P with VSCode on a small amount of files had some amount of lag on it but fzf and Vim is nearly instant with thousands of files. There's also a lot of great fzf related shortcuts with Vim too, like being able to search more than 1 file with ripgrep or searching through lines in a file, etc.. All of which are super fast operations. I can search through a 900,000+ word markdown file (over 100,000+ lines) in Vim instantly with fzf's line searching tool.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by mcguire on Saturday March 30, 2019 @05:29PM (#19531990)
"Get IntelliJ Community Edition (free) with the Rust plugin."

It's a good thing somebody put the effort into the Rust plugin for IntelliJ CE. When I started writing Rust, I used vim with syntax highlighting, so I guess I might be part of the reason Rust became popular enough to get IDE plugins. You're welcome.

Re:Coc.nvim – Intellisense Engine for Vim8 and Neovim by pmarin on Saturday March 30, 2019 @01:54PM (#19530748)
I suspect most of these people were former IDE users that can not be productive without those features.