5 ms·
Same here. That is, until I find out that only vi's there and not full-on vim. While vi is smaller and even more ubiquitous, it pains me that it lacks visual mo
by equalunique 9y ago
Same here. That is, until I find out that only vi's there and not full-on vim. While vi is smaller and even more ubiquitous, it pains me that it lacks visual mode.
- chongli 9y agoVisual mode is a crutch! I'm used to vi so I never use it. There are faster, more flexible ways of doing anything you'd do in visual mode with plain vi commands.
- lp251 9y agoHow can you insert text in a column-wise fashion? Not using a macro or some such. In vim, it's: (navigate to column) Ctrl+v 10j (or whatever) Shift-I (insert text) Escape
- chongli 9y agoWith the substitute command and an appropriate range. This sort of operation is extremely rare, though, so it's not the sort of thing you worry about when you're using a limited environment that has vi with no ability to install vim. Besides, it's far more common that you'd want to do an operation like this but the columns happen to be misaligned. Then you're reaching for substitute anyway. Might as well master the more flexible tool.
- jcoffland 9y agoHow do you compare two pieces of code side-by-side? I suppose you could create terminals and arrange then how you like but that's not much different than vim. I use gtk emacs with three frames arranged side-by-side on a 40" monitor. Not being able to compare code this way would really slow me down.
- chongli 9y agoI use tmux. It works extremely well with vi. It's no problem at all to arrange 3 panes side by side in tmux. You're not even restricted to that, of course. You could be tailing a log file in one of the panes, reading a man page in another, and coding in the middle one.
- deleted 9y ago[deleted]