Fowpas.net

ViMate - vi plugin for TextMate .

Download

I have made the project open source and it is hosted on sourceforge.


2008-06-13
Check your version

I just realized that I had an old version of ViMate as the primary download here and at sourceforge. Ummm. Sorry. They are both the most recent versions now and this site is back up and running my new server.

Posted: 13 days ago
Username: orchard apply
Nice Site! http://google.com

2008-04-02
Yehaw! I can finally see a future with decent vi functionality

It turns out I wasn't just being lazy. It really is hard for me to do what I needed to do to get a quirk free ViMate. In response to my question regarding implementing my own word movement commands on the TextMate Plugins Mailing list Alan replied:

There really isn’t much more than the NSTextInput protocol to work
with here and the string/selection methods (which return the contents
as a string).

Personally not overly optimistic about the feasibility of this for 1.x.

Which means that I'm stuck until Version 2 comes out. However he gave good news regarding that.

While I still want to downplay any potential release, I am using TM 2
myself now for most stuff. So chances for a beta before summer are
good. When a beta is out, I will gladly work a little closer with you
to make a functional ViMate plug-in.

And anyone who writes me in N months to ask on status for the above
can be certain to be excluded from any potential beta program :p

So I guess this means sit and wait. Not sure whether this warrants a smiley or a frown. I'll go with :-(

Posted: about 1 month ago
Username: iamjwc
Hey, I can't say that I have much Objective-C experience, but I would definitely like to help you extend this plugin in anyway possible. As soon as this plugin works for me, I will be a full time TextMate user. Shoot me an email and maybe we can talk about what I can do to help you out.
Posted: about 1 month ago
Username: philc
I've hacked a bit on your vimate plugin for 1.x, adding a few missing functions. It's great; I use vimate every day for 8 hours a day, so I've really been itching to beef up this plugin. I'd love to work on a more ambitious effort for TM2.
Posted: about 1 month ago
Username: philc2
This comment system is a bit bizarre; I once posted a comment on your blog as a certain email and username, and just now it would not let me reuse it for my most recent comment. It forced me to make up a new username and email befor eposting. Is there a missing login button somewhere?
Posted: about 1 month ago
Username: fowpas
The comment system needs tons of work. I needed something in a hurry so I slapped this together one night. I'll update it when I move the site to my new server in about a month. No news yet on the TextMate beta program. I'll post about it as soon as I know more. Thanks for the offers of help but there's really nothing that we can do at this point. ViMate mostly works and doesn't crash so thumbs up there.

2007-09-01
Ok, So I did some work anyway.

After saying I wasn't going to work on this for a while, I of course worked on it.

• #dd
• #yy
• d#w
• y#w
• d#b
• y#b

Each of the above commands now has proper paste and undo.

It's amazing, I have implemented all these commands and TextMate still isn't usable to me because I have not yet implemented the dot. Oh well, we'll get there someday.

Posted: 5 months ago
Username: Phil Crosby
Hey Kirt I love your plugin. I've been tinkering with it and making some very small changes. If I submit some small patches would you be interested in applying them? Just wondering if you have time to work on this enough to apply patches. Thanks -Phil Crosby
Posted: 5 months ago
Username: Travis Jeffery
How do you use this? I installed it but as far as I know nothing has changed in TextMate.
Posted: 4 months ago
Username: MarcinK
The plugin storts off in VI Insert mode, so you have to hit ESC in order to enter the key command/navigation mode. There is no command line mode, so commands starting with ':' do not work.
Posted: 4 months ago
Username: Dean
I can't believe how much more I love TextMate after installing this plugin. Thanks for all your work!
Posted: 3 months ago
Username: Dean again
Love this plugin. I have a few simple requests, though. - "gg" to scroll to the beginning of the document - "G" to scroll to the end of the document - "a" to append (Until there's a block cursor, it could just do the same thing as "i".) (By the way, your CMS doesn't allow two comments from the same email address or username. The errors are: "Email address has already been taken" and "Username has already been taken")

2007-08-26
Time off

I'm taking a hiatus from working on this plugin. I have not worked on it lately since I have been busy and I expect things to continue this way for a little while longer. I plan to pick up development again when TextMate v.2 comes out and a cleaned up and documented API is made available.

However if anyone out there feels like flushing out a few features/bug fixes on there own, I would be glad to assist you. The most notable items on my to do list are as follows:

• Fix command repeating for all commands. This is implemented system wide but non-functional for many commands. I have never looked into it.
• Cut and copy multiple lines in one chunk. ex. 3dd would currently make three separate cuts and therefore the next paste command would only paste a single line.
• Hook undo to the u key and get it to work properly across repeating or complex edits.

Once the API comes out I would like to implement the following:

• Preference pane to check for updates and change the command key from escape to a custom key combination.
• Change cursor to a block when in command mode.
• The . command.
• Hook /, *, n and N up to the built in search.
• Get correct word movement behavior (w, b, and e).
• Marks, hopefully I will be able to hook this up to the built in bookmarks.
• Hook q up to the built in macro recording

2007-05-14
Cut, Copy, Change, Paste, Insert Line and Scrolling Implemented

I have added a bunch of new stuff. The cut and paste is not exact yet but it works resonably well. Yanking multiple lines is not implemented yet. For now you can use visual mode to select multiple lines and cut or copy them with the y or d key. Enjoy the bugs.

Movement

* k - moveUp
* j - moveDown
* l - moveRight
* h - moveLeft
* w - moveWordRight
* b - moveWordLeft
* 0 - moveToBeginningOfLine
* $ - moveToEndOfLine
* #[movement] - move # number of times

Insert

* a - insertRight (not repeatable)
* i - insertLeft (not repeatable)
* o - insertBelow (not repeatable)
* O - insertAbove (not repeatable)

Cut

* d - cutSelection
* dd - cutLine (not repeatable)
* dl,x - cutRight (not repeatable)
* dh,X - cutLeft (not repeatable)
* dw - cutWordRight (not repeatable)
* db - cutWordLeft (not repeatable)
* d0 - cutToBeginningOfLine
* D,d$ - cutToEndOfLine

Copy

* y - copySelection
* yy - copyLine (not repeatable)
* yl - copyRight (not repeatable)
* yh - copyLeft (not repeatable)
* yw - copyWordRight (not repeatable)
* yb - copyWordLeft (not repeatable)
* y0 - copyToBeginningOfLine
* y$ - copyToEndOfLine

Change

* c - changeSelection
* cc - changeLine (not repeatable)
* cl - changeRight (not repeatable)
* ch - changeLeft (not repeatable)
* cw - changeWordRight (not repeatable)
* cb - changeWordLeft (not repeatable)
* c0 - changeToBeginningOfLine
* c$ - changeToEndOfLine

Paste

* P - pasteBefore (hacky near end of file)
* p - pasteAfter (hacky near end of file)

Scroll

* ctrl-e - scrollLineDown (not repeatable, doesn't keep cursor in view)
* ctrl-y - scrollLineUp (not repeatable, doesn't keep cursor in view)
* ctrl-f - scrollLineDown (not repeatable, doesn't keep cursor in view)
* ctrl-b - scrollLineUp (not repeatable, doesn't keep cursor in view)

2006-11-20
Proof of Concept

If you are here for the TextMate Vi plugin you can download it here.

I am working on the full version of the plugin. I have made the project open source and it is hosted on sourceforge. Feel free to help me on it.