4 ms·
Right now, using vim is better than using this new editor (vis), although vis is close to being substantially better than vim. I use the suckless window manage
by _b 12y ago
Right now, using vim is better than using this new editor (vis), although vis is close to being substantially better than vim.
I use the suckless window manager (dwm) and terminal (st), so gave vis a try for a couple days. Three vim plugins made me return: git-gutters, you-complete-me (ycm), and clang-format.
It is hard to extend vim's functionality. Its plugin interface has issues. Because of that, ycm and git-gutters can not be used at the same time, and something that ought to be straightforward like exposing clang's autocomplete information requires a considerable engineering effort (ycm) spanning three languages and about as much code as vis is total.
Giving vis good extensibility would be easier than fixed vim's plugin interface (sorry neovim). My personal preference for doing this would be a patch to vis that adds vim like gutters and dropdowns, and then patches that require this one and add specific things like ycm and git-gutters. A reasonable programmer could disagree and prefer out-of-process plugins. Either approach being implemented well would be very exciting.
- airblade 12y agoThe reason ycm and vim-gitgutter don't work well together isn't the "plugin interface"; it's the limited nature of the sign column which can only display one sign per line. If both ycm and gitgutter want to display a sign on the same line, only one can succeed. Edit: oops, ycm doesn't use signs...I was thinking of syntastic. As far as I know ycm and vim-gitgutter should work together.
- _b 12y agoHere is a bug report discussing why they don't work together: https://github.com/Valloric/YouCompleteMe/issues/812 https://github.com/Valloric/YouCompleteMe/issues/812
- JackMorgan 12y agoWith all sincerity, these plugins are available in Emacs, along with a Vim emulator called Evil. I used to fight with Vim so much, but for several years have been just using it inside Emacs, a decision I've never regretted.
- exDM69 12y agoevil-mode is not without problems either. In particular, it doesn't work very well outside of "regular" code/text buffers. Using it in GDB/scratch/other buffers is very inconvenient. So if migrating from Vim to Emacs + evil, you still have to learn how vanilla Emacs works. At least this was my experience when trying it out.
- gnuvince 12y agoYou could add a hook to use evil only in certain modes, for instance: (add-hook 'prog-mode-hook 'evil-local-mode) This activates evil only for modes that derive from prog-mode.
- exDM69 12y agoYes, that's the only reasonable way to go. But you still need to learn how vanilla emacs works.