Live data from Hacker News

Vim 7.4 is released

vim.org

31–40 of 126 posts

Re: Vim 7.4 is released

#31
post #2

:help version7.4 has all the details, but the two most significant ones cited are "New regexp engine" and "A more pythonic Python interface." Of the former, the help file says: What is now called the "old" regexp engine uses a backtracking algorithm. It tries to match the pattern with the text in one way, and when that fails it goes back and tries another way. This works fine for simple patterns, but complex patterns…

I am interested in regexp implementation (high level overview). As far as I understand, it is not possible to come up with state-machine for regex containing "extensions" such as backreference (\1 or \2), it just doesn't fit into "regular languages". At least this is what I learnt from [0].

Does anyone know more details about new regex matcher? (I don't think I will be able to read the code).

[0]: http://swtch.com/~rsc/regexp/

Re: Vim 7.4 is released

#32

Earlier quoted context omitted.

It sounds like someone read Russ Cox's work on regexp. http://swtch.com/~rsc/regexp/ To future regexp implementors: Do it this way first!

It sounds like someone read Russ Cox's work on regexp. Russ Cox? You know that regular expressions have existed since Kleene's first proposals, and everyone with a CS degrees knows that you can compile them to deterministic finite state automata. Right?

You know that he didn't say Cox invented regular expressions, but that the Vim implementation might be influenced by Cox's advocacy on the matter. Right?

Re: Vim 7.4 is released

#33
post #15

Earlier quoted context omitted.

It’s not syntax highlighting, but it needs a recent version of Vim: http://valloric.github.io/YouCompleteMe/ ?

Is it any good? It looks good, but stuff sometimes disappoint.

If you like autocompletion then yes, it's very good. At one point I had issues with startup time that I was pretty sure had been caused by it, but it's highly likely it had more to do with Clang than YCM (I can't remember the outcome fully, since I ended up moving to Emacs shortly after).

Re: Vim 7.4 is released

#35

MacVim dont't have lion or moutain lion style native scrollbar still.

I turned them off completely. I found that the line numbers and file position in the status line was more than enough to get my bearings, and it looks nicer without the scrollbars.

In ~/.gvimrc:

  " no toolbar
  set go-=T
  " no right scrollbar
  set go-=r
  " no left scollbar
  set go-=L

Re: Vim 7.4 is released

#39
I've been digging deeper and deeper into vimscript and also scripting vim with python. It's so amazing what you can do with just a few lines of hacky vimscript!

Today I made it so that every time I open a .markdown file, vim compiles it to html and opens it in my browser (using 'open' command on OS X). It also updates it automatically every time I save or leave insert mode.

I've also hacked together a python REPL inside a vim window. (Wasn't very hard, as vim has python built-in.)

Once you realise that Vim is just an extension of the command line, a new world opens up. Everything you can do from the command line, you can do from Vim. Throw in Python and the options are endless... So much POWER!!

BTW: I also discovered vim has MzScheme built-in, so don't go for emacs just because of lisp... Vim has a nicer lisp! Come to the dark side, we have cookies! (And lisp.)

Re: Vim 7.4 is released

#40
post #36

I love vim, but:- http://www.vim.org/ http://www.sublimetext.com/ Which one would you want to use?

The one offering the best product. Or are you saying you are judging by appearance?

I think it's a fair point, judging by appearances may be instinctual if not conscious. The current git website (http://git-scm.com/) looks the way it does because of an effort to replace the old one (http://web.archive.org/web/20120101013850/http://git-scm.com... and https://github.com/blog/1125-new-git-homepage).
Post reply on HN