Live data from Hacker News

Vim 7.3 released

groups.google.com

31–40 of 48 posts

Re: Vim 7.3 released

#32
post #27
post #24

Anyone got any links to good guides for getting into Vim if you are a Visual Studio user at present? I keep hearing people talking about Vim and how it will change your life, mannn. Is there a good beginners guide?

I liked the visual guide: http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial... You can also get a vi plugin for Visual Studio http://www.viemu.com/ which is pretty cool.

Their is also a free vim tool for Visual Studio that is semi complete but very usable. VsVim is what its called and I use it everyday.

Re: Vim 7.3 released

#33
post #15

Earlier quoted context omitted.

In case you didn't know, Vim already had undo "trees". My mind was BLOWN when I discovered this: http://vimdoc.sourceforge.net/htmldoc/usr_32.html -- Never again accidentally lose work by accidentally breaking your redo change! The online docs are still 7.2, so I had to dig into the source for a link to the new persistent undo/redo docs (search for "undo-persistence"): http://code.google.com/p/vim/source/browse/runti…

This is not a dis against Vim (I use both), but if any Emacs users are reading this and think "cool!": http://www.dr-qubit.org/undo-tree/undo-tree.el

I'm writing a new text editor and I spent an inordinate amount of time on the undo system. I never realized how many things the choice of undo implementation would affect.

But I did come to the conclusion that Emacs' default undo system is where it's at. Every modification should be undoable, including undos. Once you understand how it works, there's no longer a need for trees and the complexity that brings.

Re: Vim 7.3 released

#34
post #24

Anyone got any links to good guides for getting into Vim if you are a Visual Studio user at present? I keep hearing people talking about Vim and how it will change your life, mannn. Is there a good beginners guide?

Start by running vimtutor on just about any system that has Vim installed.

THIS. Get comfortable with moving from command to insert mode and back, moving around using the keyboard, and basic commands like delete, change and search (/). See how to combine these. From there, you're doing everything from the keyboard and learning new little shortcuts all the time.

Re: Vim 7.3 released

#35
I am happy to see the'relativenumber' option patch make it.

Quote from :h relativenumber

Show the line number relative to the line with the cursor in front of each line. Relative line numbers help you use the |count| you can precede some vertical motion commands (e.g. j k + -) with, without having to calculate it yourself. Especially useful in combination with other commands (e.g. y d c gq gw =).

Re: Vim 7.3 released

#36
post #33
post #15

Earlier quoted context omitted.

This is not a dis against Vim (I use both), but if any Emacs users are reading this and think "cool!": http://www.dr-qubit.org/undo-tree/undo-tree.el

I'm writing a new text editor and I spent an inordinate amount of time on the undo system. I never realized how many things the choice of undo implementation would affect. But I did come to the conclusion that Emacs' default undo system is where it's at. Every modification should be undoable, including undos. Once you understand how it works, there's no longer a need for trees and the complexity that brings.

For those of us who are Vim users, could you explain the Emacs system?

EDIT: It seems that undo-tree.el file has a good explaination in the comments: http://www.dr-qubit.org/undo-tree/undo-tree.el

Re: Vim 7.3 released

#37
post #27
post #24

Anyone got any links to good guides for getting into Vim if you are a Visual Studio user at present? I keep hearing people talking about Vim and how it will change your life, mannn. Is there a good beginners guide?

I liked the visual guide: http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial... You can also get a vi plugin for Visual Studio http://www.viemu.com/ which is pretty cool.

As a long-time vim users and short-time Visual Studio user, I've found viemu to be a nice addition but frustrating to use. It conflicts with VS2010's keyboard shortcuts, and I've found myself doing the "random typing OMG what did I just do" thing fairly often. I hadn't done that in vim for over a decade.

Maybe it's just that viemu for VS2010 has only just come out recently, and may still need some tweaking. Long term, it's probably a great tool.

Re: Vim 7.3 released

#38
post #33

Earlier quoted context omitted.

I'm writing a new text editor and I spent an inordinate amount of time on the undo system. I never realized how many things the choice of undo implementation would affect. But I did come to the conclusion that Emacs' default undo system is where it's at. Every modification should be undoable, including undos. Once you understand how it works, there's no longer a need for trees and the complexity that brings.

For those of us who are Vim users, could you explain the Emacs system? EDIT: It seems that undo-tree.el file has a good explaination in the comments: http://www.dr-qubit.org/undo-tree/undo-tree.el

It's something in the line of every change is a transaction. A redo is a replay of a transaction. An undo is not exactly a rollback but a reverse of the change and also a new transaction. You can undo a transaction in the past by reaplying later transactions. Makes me think a bit about Operational Transforms but I couldn't synthesizes my precise thoughts on that.

Re: Vim 7.3 released

#40
Persistent undo is my favorite new feature. The ability to close vim, reopen a file later, and then have all of the undo history still available is awesome. (Alternatively, I used to suspend vim instead of actually quit.)

To turn on persistent undo, I created a new directory called ~/.undo to store all of the undo history so that my working directories wouldn't get cluttered. Then in .vimrc, I add:

   set undofile
   set undodir=~/.undo
Post reply on HN