[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vr / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / asp / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / qst / sci / soc / sp / tg / toy / trv / tv / vp / wsg / wsr / x] [Settings] [Search] [Home]
Board
Settings Home
/g/ - Technology


Thread archived.
You cannot reply anymore.



File: vim.png (25 KB, 400x400)
25 KB
25 KB PNG
Why do you like vim over other text editors such as atom or sublime text?
>>
Atom is a chromium browser instance running a text editor written entirely in javascript, simple things like a blinking cursor can eat up 30% of your CPU usage because of the way javascript is executed.
Sublime Text is abandonware that also costs money and doesn't do anything particularly better than free and libre alternatives like Notepad++.
Vim is also shit, people frequently mistake vim for the much older vi, citing ubiquity and minimalism as it's key features when none of those apply to vim, it's design predates keyboard idioms you take for granted like Ctrl+S/Ctrl+O/etc. or even standard ANSI keys like Ctrl, Alt, Ins/Del/Home/End, or even arrow keys, so none of those are used in the default keyboard shortcuts.
Emacs isn't nearly as obtuse, but it's default keybindings are literally designed to give you carpal tunnel and it's really more of a self-contained lisp interpreter that JUST HAPPENS to edit text. It also has a habit of becoming a magical timesink that consumes the duties of every other application on your computer until you've configured your way into making emacs your window manager and everything short of the init system on your operating system.

Use GNU nano if you value your time and productivity.
It's shortcuts are easy to learn and do not require you to "learn" your editor like everything else in this list.
>>
I use GNU emacs. It’s better than anything else. I have no idea why a person would use a bloated JS editor with telemetry.
>>
>>71387428
Thanks *sucks your dick as a sign of thanksgiving*
>>
>>71387189
Just werks.
I only need a very minimal .vimrc, which btw is a very easy way to add configs, to be comfortable programming and managing files on vim, the keyboard controls and shortcuts are my favorites and emulating it on another editor just doesn't really cut it (no, can't stand Doom or Spacemacs), the program is small and fast and will run nicely on almost any computer.
I not even use plugins generally, only the default netrw.
>>
The modal design is great because the main parts of editing text are navigation and manipulation, not entry. So it helps to free up the whole keyboard for commands to do those things.
>>
>>71387189
fuck all this shit

kate or enki on lignux
notepad++ or enki on wangblow

everything else a shit
>>
>Vim
It's shit
>Atom
You shouldn't use a browser to edit text. Depends on non-free software.
>Sublime Text
Costs money, doesn't do anything worth while. Also is non-free.

Emacs is great if you need to do a bunch of shit. mg, ed or nano is good for smaller edits.
>>
Use GNOME Builder in editor mode
>>
File: kakoune.webm (726 KB, 958x527)
726 KB
726 KB WEBM
What about kakoune?
>>
1. Lots of great shortcuts
2. Less overhead than a gui
3. Color and parses with different langs.
>>
>>71387189
I use it because it's the only editor which comes pre-installed with every Linux distribution I'm using, at least in a minimal form.
Several distributions additionally ship GNU nano, SUSE Linux Enterprise has Emacs installed by default.
>>
If you aren't using vim keybinds at least you are just plain and simply doing it wrong.
>>
>>71387953
I think I remember this not being on windows. That looks really cool though.
>>
>>71388014
>at least in a minimal form.
That's because it's Vi you're talking about, not Vim.
This "Vim is installed everywhere" meme needs to die.
>>
>>71388036
Modal editing is objectively less efficient, and merely a compromise for keyboard without proper modifiers.
>>
Why would anyone with a job prefer vim aside from emacs?
>>
>>71389154
>citation needed
>>
>>71389154
Only if you're a retard that can't use it properly.
>>
>>71387189
lightweight (at least compared to anything browser based like Atom), a lot of available plugins, libre and rather convenient when you get used to it.
>>
>>71387963
great shortcuts? WTF
>>
>>71389223
>press modifier to change mode
>release it to change mode
Instead of
>press and release separate key to change mode
Modal editing is _objectively_ less efficient.

>>71389227
What does "using it properly" mean?
>>
>>71389145
The last time I've checked, the default vi program/symlink shipped on Debian and Ubuntu comes from the vim-tiny package, on Fedora/CentOS from vim-minimal and on SUSE from vim.
Arch is pretty much the only alive Linux distribution which packages a patched version of the traditional ex-vi program (which still gets installed on most new installations because most users install the whole base group for strange reasons), which otherwise is only still shipped on BSDs and commercial UNIX operating systems. Even Slackware defaults to elvis instead because of its shortcomings.
>>
>>71389309
You're assuming the default is insert mode, which it isn't for good reason.
>>
>>71387953
what program did you use to show the key presses
>>
>>71387428
>it's design predates keyboard idioms you take for granted like Ctrl+S/Ctrl+O/etc. or even standard ANSI keys like Ctrl, Alt, Ins/Del/Home/End, or even arrow keys, so none of those are used in the default keyboard shortcuts.
>it’s common so it’s good

>Vim is also shit, people frequently mistake vim for the much older vi, citing ubiquity and minimalism as it's key features when none of those apply to vim
Vim is more ubiquitous. I’m pretty sure RHEL now ships with it instead of vi as of 7.
>Use GNU nano if you value your time and productivity. It's shortcuts are easy to learn
They’re also 10 times less powerful than vi/vim’s.
>>
>>71389384
Why do you think I'm assuming it?
I too used Vim, you know.
>>
>>71389384
Based
>>
>>71387189
it makes me feel smart
>>
>>71387935
based and redpilled
>>
>>71389392
Because otherwise what you said makes no sense.
>press modifier to change mode
You're already in normal mode by default. That's the point.
>>
>>71387428
>it's design predates keyboard idioms you take for granted like Ctrl+S/Ctrl+O/etc. or even standard ANSI keys like Ctrl, Alt, Ins/Del/Home/End, or even arrow keys, so none of those are used in the default keyboard shortcuts.
>implying that's a bad thing
That's the single greatest feature of vim you degenerate.
>>
>>71389486
You don't ever change mode from insert to normal?
Funny. And you tell me I'm "not using it properly".
>>
>>71389640
Are you stupid or pretending?
Normal is the default mode because it's used more. You change modes to insert text, then change back. This is two extra keys for entering text, but fewer for anything else.
>>
>>71387428
>Use GNU nano
To the trash it goes. Modeless editors are worthless if you can't use the mouse to interact with them.
>>
>>71387935
Atom is libre software.
>>
>>71389698
>Are you stupid or pretending?
Right back at you.
I know. Normal is the default. You don't have to convince me on that.
That said, last time I checked, switching from one mode to the other literally is changing mode, by definition.
Why do you think acknowledging that makes one retarded?
That said, non-modal editing objectively requires less keypresses overall. Try mixing short bursts of insertion/commands and you'll see why.
>>
>>71389822
It's a bloated piece of shit sadly

>>71387935
> Emacs is great
Just google "How do I duplicate a whole line in Emacs?" and come back here.
>>
>>71389808
But nano does have mouse support.
And modeless is better regardless of it.
>>
>>71390096
>Try mixing short bursts of insertion/commands
Try not doing that, because it's inefficient.
>>
>>71390122
Sour grapes.
>>
>>71390099
C-k C-y C-y you piece of shit dumb nigger
>>
>>71390149
>use tool badly
>complain tool is bad
Again, the whole point of normal mode being normal is that most editing tasks involve navigating and manipulating the existing text, which it does efficiently. Switching between modes all the time is not a normal way to use vim.
>>
>>71390164
You forgot C-a at the beginning.
All those steps just to duplicate a fucking line.
TOP KEK
>>
Easy guest control via modelines.
>>
>>71390586
>modelines
Oof
https://thehackernews.com/2019/06/linux-vim-vulnerability.html?m=1
>>
>>71389309
>press modifier to change mode
>perform operation
>release it to change mode
How is this considerably more time consuming than
>start holding modifier to change mode
>perform operation
>release modifier to change mode

The difference is almost non-existent to begin with, and as soon as you perform more than one operation in succession modal editing becomes more efficient if you use the raw amount of keypresses as a benchmark. And fact is, you almost never insert, then only perform one operation and then go right back to inserting. Usually you enter a long chain of operations before returning to inserting. Hence modes are more efficient and make total sense.
>>
>>71387189
I use either Sakura (wangblows) or micro (Linux). anything else is bloated garbage.
>>
I've tried to move around with the keyboard but it makes me "sick", like if I use a mouse to scroll most applications use smoothing or something. With a keyboard it's usually a very hard cut. It's also worse for giving you context since often one program scroll X lines and others Y.
Anyone else with this problem?
>>
>>71390099
The best thing is that the C-S-Backspace binding for kill-whole-line doesn't work on most terminal emulators because either Ctrl+Backspace or Shift+Backspace is a shortcut for ^H.
>>
>>71390369
well If i was using "duplicate line" so often I would probably write a function which does this, bind it to key and voila! I have single key combo that duplicates the line. Why is /g/ full of retards like this
>>
>>71391840
Then you'd write a function for "delete line", then a function for "copy line", then a function for "highlight line", etc. Why are you calling other people retarded when you don't even understand how Vim's composable model is better than your ad hoc bindings?
>>
File: 1559394941379.jpg (74 KB, 500x500)
74 KB
74 KB JPG
>>71388053
>I think I remember this not being on windows
jesus girl what are you even doing
>>
>>71391823
What do terminal emulators not recognizing it have to do with it?
>>
>>71390099
How do I duplicate a whole line in Vim?
>>
>>71392108
yyp
or ^y$p
>>
>>71392133
That's just 1 keypress less when compared to Emacs.
>>
Vim niggers need to be rounded up.
>>
>>71392143
is that including or excluding modifier keys like ctrl or shift and pasting?
>>
Fine as a text-editor but.. people who use vim don't have a need for a complete IDE? After you get used to jetbrains' features, specially for refactoring and analysis, not to mention so many integrations, I would have to find the equivalent on vim. It would probably end it up like a frankenvim, if such plugins exist and are well maintained.
>>
>>71391840

/thread
>>
>>71387551
cringe
>>
>>71392143
You can delete a line with dd, copy it with yy, lowercase it with guu, etc. But the thing is, those operators are composable with any motion you have - you can combine them with "word forward", "2 word backward", "2 lines updward", etc.

>>71392175
You don't need most of those features to be inside your editor. You can install one plugin for LSP, and that takes care of that, anything else you can use an external tool for. Also nothing prevents you from using Jetbrains in tandem with your editor of choice. Just don't use the terrible editor the IDE ships with.

I haven't really found myself to be constantly needing IDE features anyway, most of the time a regular editor with simple completion and search&replace is enough to produce working code. What IDE features do you use frequently?
>>
>>71392735
>What IDE features do you use frequently?
Most of the refactoring tools, local history, integrated git options like in panels and in the gutter. Very handy when you want to know which co-worker you'll have to blame that day or when you want to understand why that particular line exists. It's also my DB manager, in a couple of shortcuts or clicks I can go from my local db to even a read-only access to my production db in read only mode and automatic ssh tunnel.
The search is also very powerful. There's more but I'll stop here because I sound like a jetbrains shill but desu I'm worried how much ahead they are and I wish it was free software instead.
>>
>>71390369
> being too lazy to press like four buttons
I bet your dad comes down to the basement every morning to ask you how you are and how your "groundbreaking" app is coming along. you probably tell him that it's going well and that you predict that google will buy it for millions, not having the heart to tell him that your big idea was implemented better than you ever could have done by some Chinese teenager two years ago.
Your dad probably laughs, practisedly concealing his worries. "good job. keep working hard, champ. i'm proud of you." he'll say, ignoring the fact that you haven't left the basement for a week now. He just wants the best for you, regardless of your shortcomings. He leaves, and you go back to ricing your desktop in preparation for your next big project. This'll be the one, you think to yourself - this will be bought up by Google for sure! Just wait til' you're a multi-millionaire, they'll all see!
While you modify Vim keybindings to let you copy text with one keystroke instead of three, your dad stifles sobs as he realises he failed you.
>>
>>71392039
no you fucktard, c-k deletes line and copies it to killring from which it is pasted with c-y... anyway, I see you are a vim fag... once you realize that peak productivity doesn't happen because of superior editing capabilities with least number of keystrokes, you realize that being productive in programming is much more than that. fucking kids
>>
>>71392842
Well, an LSP setup lets you perform any common refactoring operations I can think of (rename, go-to-definition and more). Not sure what local history is, just ctrl-z? Git is obviously a nice thing to have, and most editors (vscode, emacs, and lastly vim somewhat) have all basic git operation available that make sense in your editor (like git blame). Going further, there's snippet managers that let you quickly write boilerplate (if you use such an unfortunate language that is filled with it). For global search&replace I either use a line of perl in the terminal or
ag 'search_pattern' | xargs gvim
and go through the matches one by one, file by file.

So all in all I'd say you _can_ manage most of those things well with a relatively basic editor setup. The upside is that you now have a unified editor for every language and you can still use your IDE occasionally if it offers something extra, like a nice debugger. The downside is some amount of initial setup.

>>71392955
>peak editor doesn't have peak editing capabilities
what am I reading
>>
File: IMG_20190529_085038_481.jpg (61 KB, 812x1024)
61 KB
61 KB JPG
>>71387189
Bim got hacked faggots get cucked kek
>>
>>71392932
Is this a pasta?
Can I make a pasta out of this?
Amazing writing btw
>>
>>71387189
run "vimtutor" and you know why. also take a look at these boomer video from luke smith on vim.

if you think Vim is still bloated (which it is) just compile it yoursef by doing:

./configure --enable-gui=no --with-features=tiny --without-gnome --without-x

Download "nightly" at: https://github.com/vim/vim/releases
>>
The text editing capabilities of vim are great, but I've given up on fiddling around with plugins and vimscript to get a half functional hacky feature that just works out of the box in some other editors. I just use VS Code with vim emulation now and everything just works with zero configuration.
>>
endless timesink and config file eventually ends up looking like schizophrenic hobo scribbles on wall of a public bathroom. i don't even know why anymore (still opens and loads a file in fraction of a second, that's why).
>>
File: demolished.gif (492 KB, 460x345)
492 KB
492 KB GIF
>>71392133
I fucking hate this shit so much
>>
The thing that made me drop vim immediately was realizing that some people outright put vimconfig garbage directly in their source files because ricing vimrc isn't enough for them
>>
File: 2019-06-12_22:02:32.png (37 KB, 959x1062)
37 KB
37 KB PNG
>>71395613
Starting folding when it gets too much
>>
>>71395933
am I blind or is that a modified version of solarized light? if so, link? ty
>>
>>71387189

I use microsoft word. I think it's a pretty good editor overall.
>>
>>71397105
It's just default
>>
File: lel.png (251 KB, 1705x703)
251 KB
251 KB PNG
>>71397105
>>71397168
>>
>>71397201
the contrast for solarized gets messed up quite easily because of some reason, if you don't compile or use a color scheme that is solarized in your terminal then the colorscheme in vim won't be genuine.
>>
>>71387189
>>71387953
What about vis? it's capable of do 90% of the things that vim and kakoune do, with 90% less sloc: https://github.com/martanne/vis

Sadly, development is a bit paused, still it have a very interesting approach to editing using structural regular expressions
>>
>>71387189
because I dont have to take my fingers off the keyboard at any point in my workflow.
>>
>>71390099
Vim is more about the editing of text itself. Emacs is about automating shit with macros as much as you can, so you don't need to give a shit about the editing process. Although i like emacs' text editing more, because elisp is easier to understand and make my own shit for
>>
>>71387189
Macros

That's literally it, fuck your toy editors. I can do macros on the fly and you're stuck editing 90 rows by hand
>>
Seriously check out Spacemacs. It is a pre-configured emacs so one does not have to become a basement dweller recluse before being productive, it also has great support for vi-bindings. I want to use an emacs because when you work with more than 2-3 mainstream languages, the IDE situation becomes shitty fast and org-mode is pretty fucking great at anything to do with organizing.
>>
>>71390369
And pressing 0v$yp is that much better?
>>
>>71399059
yyp

vim has operators for this exact reason



Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.