Live data from Hacker News

Vim Creep

rudism.com

51–60 of 237 posts

Re: Vim Creep

#51

I've said it before, and I'll say it again... Editing text is a solved problem: vim or emacs. Pick one and get back to work.

While vim is very cool, there is certainly a lot of room for improvement. vim's codebase doesn't look like something that I would like to hack, and don't try to tell me that things like vim plugins or vimscript are supposed to be the best that we can ever hope to do.

Re: Vim Creep

#52

Also feels good to have vim bindings inside of emacs using evil ( http://www.emacswiki.org/emacs/Evil ).

Oddly, I've found myself using vimacs (https://github.com/andrep/vimacs) to have emacs keybindings available with the quick startup / easy configurability of vim.

I make no claim that emacs keybindings are superior to vim's native keybindings, but for whatever reason, I type more naturally using them at this point. (Which somewhat mystifies me, since for years I used vi/vim as a primary editor with it's normal keybindings.)

I still think that vim keybindings are faster than Emacs for actually editing text, but the emacs keybindings feel more pleasant to me (unless I'm using something without a dedicated control key - like a phone or tablet).

Re: Vim Creep

#53
post #34

This feels like an article about a religion or cult, not a software program. I just don't get it. Ever since newer editors got block editing or multiple insertion cursors, and RegEx find & replace across multiple files, and searching filenames to open... I feel like I've already got everything I need! What am I missing out on? I don't feel like my text editor holds back my productivity. Using something like Sublime,…

You really have to sit down and see a vim user work to start to understand. In vim you don't just move around with arrows, then delete and then replace the text you want. What happens is you can use noun-verb associations to do things. For example on a line like this: var foo = "bar"; I could be at the beginning of the line and type the following keys to change the inside of the quotation marks: ci"baz In sublime I w…

If you're into that sort of thing, you can do Ctrl + F, bar in Sublime too. Most of the comparisons in this discussion between vim and non vim demonstrate high proficiency in vim, but not as much elsewhere. Of course you are more proficient in the tool you know best.

Re: Vim Creep

#54

Earlier quoted context omitted.

I don't understand vimmers, but I use Emacs and I can say that having your work environment be 100% programmable is pretty damned nice.

So what kind of stuff do you program inside of it? What kinds of problems do you solve? I mean, I've never really felt the need to program an add-on to text editor. I download syntax highlighting packages, and there are common macros like "remove trailing whitespace" already installed. Keyboard shortcuts can be changed in lots of editors and OS's. In the past, I've definitely been upset that a particular editor didn'…

Looking through my .emacs for things I, personally, have written:

- A little hook to use an external Python program (cheating, I know) to look up the definition of the word under the cursor in the OS X dictionary.

- Several customizations for org-mode, which I use for anything where I want to make an outline, including and especially to-do lists.

- I actually still have some code to do "smart tabs" (http://www.emacswiki.org/SmartTabs) for some modes, though that's now probably obsolete if I would only configure up the code mentioned in that list for C modes. (I'm already using it for e.g. Python code.)

- Some configuration for LaTeX editing, like packages AUCTeX doesn't know about, converting words/phrases into \gls (glossary) references.

I actually have less custom stuff in .emacs than I thought. Having a programmable editor does mean that it's relatively easy for other people to write some really useful stuff which I then get to use. I have some local modifications to other people's packages which I don't have time to enumerate right now.

Re: Vim Creep

#55
post #38

My first week in college a distant relative of mine at the same school pulled me into the Sun lab. The sum-total of his instructions were: * This is how you log in. * This is ls. * This is cd. * This is man. * This is apropos. * Learn vi. * Have fun. What came from that 5 minute intro to Unix has been applied orders of magnitude more often than anything from 5 years of an EE degree.

Can you explain to me what apropos does?

It lets you find other commands, basically. http://en.wikipedia.org/wiki/Apropos_(Unix)

Re: Vim Creep

#56
post #38

My first week in college a distant relative of mine at the same school pulled me into the Sun lab. The sum-total of his instructions were: * This is how you log in. * This is ls. * This is cd. * This is man. * This is apropos. * Learn vi. * Have fun. What came from that 5 minute intro to Unix has been applied orders of magnitude more often than anything from 5 years of an EE degree.

Can you explain to me what apropos does?

  $ man apropos
  
  apropos searches a set of database files containing
  short descriptions of system commands for keywords and
  displays the result on the standard output.

It answers the question "I wonder how to do [this English word]."

For example: "I wonder how I copy a file."

  $ apropos copy
Dumps out all of the matching entries from the man pages for the word "copy". If you just wanted general commands, as opposed to library functions, and assuming your system organizes man page sections in the typical manner, you can filter it down with:

  $ apropos copy | grep "(1)"
  cp                   (1)  - copy files and directories 
  cpio                 (1)  - copy files to and from archives

Re: Vim Creep

#58

I've never found that symbols -> buffer is the bottleneck for me. Instead, it exists somewhere between problem -> symbols.

Yeah, but having got through the problem->symbols bottleneck, it's nice not to have another one waiting.

Re: Vim Creep

#59
post #34

Earlier quoted context omitted.

You really have to sit down and see a vim user work to start to understand. In vim you don't just move around with arrows, then delete and then replace the text you want. What happens is you can use noun-verb associations to do things. For example on a line like this: var foo = "bar"; I could be at the beginning of the line and type the following keys to change the inside of the quotation marks: ci"baz In sublime I w…

If you're into that sort of thing, you can do Ctrl + F, bar in Sublime too. Most of the comparisons in this discussion between vim and non vim demonstrate high proficiency in vim, but not as much elsewhere. Of course you are more proficient in the tool you know best.

Exactly, and does it really matter? I mean, how many people in usesthis.com actually use Vim? And they are all brilliant people.

Re: Vim Creep

#60

This feels like an article about a religion or cult, not a software program. I just don't get it. Ever since newer editors got block editing or multiple insertion cursors, and RegEx find & replace across multiple files, and searching filenames to open... I feel like I've already got everything I need! What am I missing out on? I don't feel like my text editor holds back my productivity. Using something like Sublime,…

the most common example is moving up or down a row. most editors you have to reach for the arrow keys or the mouse. in vim, you use j key for down, k key for up. the most commonly used functions are near the home row.
Post reply on HN