5 ms·
Most of those are plain vi ( and ed ) commands. All of my machines have the vim-tiny package to stay as close to stock vi as possible. I open and close the edi
by dingaling 8y ago
Most of those are plain vi ( and ed ) commands.
All of my machines have the vim-tiny package to stay as close to stock vi as possible. I open and close the editor dozens of times a day to make simple changes and I don't tolerate any lag.
I can see that vim would be great for long-form programming but plain old vi was just fine for most admin tasks.
- bArray 8y agoOkay, so I've come across `vim.tiny` a few times now, what's the difference? Plain `vi` I can't seem to work out, the shortcuts I usually use all seem to be different?
- Abitingal 8y agoVim can be compiled as different versions, the bigger the version the more features it will have. I know that its described in Vims manual but I can't find it right now. Tiny versions don't include some useful features like visual mode and tabs. My guess is that vim.tiny is made to be a drop-in replacement for the old vi.
- majewsky 8y agovim-tiny differs from regular vim in how much stuff is compiled into it. Regular vim is actually quite hefty since it includes e.g. scripting bindings to Python, Perl, Lua, etc.; or support for X11 (which is useful even in a terminal for working with the X clipboard), and so on. If you have both vim and vim-tiny installed, you can use the command ":version" to compare which features have been compiled in.
- Zardoz84 8y agoUse Plug to load the plugins that you only need for a specific file. For example, this only load this plugins if I'm working wiht LESS/SCSS/CSS or Vue files : Plug 'groenewege/vim-less', { 'for': ['less']} Plug 'cakebaker/scss-syntax.vim', { 'for': ['scss'] } Plug 'othree/csscomplete.vim', { 'for': ['less', 'scss', 'css', 'vue'] }
- LyndsySimon 8y agoThank you! I wasn't aware this was possible; it improves things quite a bit for me.