Live data from Hacker News

Textmate to VIM

jackkinsella.ie

1–10 of 42 posts

Re: Textmate to VIM

#2
Nice! I just recently switched from Sublime to Vim... this will come in handy!! I've been trying to figure out how to do "Move selected text up" in Vim... Thanks!

Re: Textmate to VIM

#3
post #2

Nice! I just recently switched from Sublime to Vim... this will come in handy!! I've been trying to figure out how to do "Move selected text up" in Vim... Thanks!

There's no need to abandon something you've paid money for to utilise features which are otherwise free...

http://www.sublimetext.com/docs/2/vintage.html

https://github.com/sublimehq/Vintage

If you're fortunate enough to be using Sublime on OSX, finding a shortcut is easy as:

1. Opening the help menu - "Command-?" (Command-Shift-/) 2. Entering search terms

Here's a screengrab of the process for your particular query (moving lines up): http://i.imgur.com/j226q.png

And here's a screengrab of CheatSheet (http://cheatsheetapp.com), a utility for quickly reviewing shortcuts in any OSX app, being applied to Sublime: http://i.imgur.com/HPUB4.png

Alternatives for these are available for other platforms, should you not be using OSX. Seek and you shall find :)

Re: Textmate to VIM

#4
post #2

Nice! I just recently switched from Sublime to Vim... this will come in handy!! I've been trying to figure out how to do "Move selected text up" in Vim... Thanks!

There's no need to abandon something you've paid money for to utilise features which are otherwise free... http://www.sublimetext.com/docs/2/vintage.html https://github.com/sublimehq/Vintage If you're fortunate enough to be using Sublime on OSX, finding a shortcut is easy as: 1. Opening the help menu - "Command-?" (Command-Shift-/) 2. Entering search terms Here's a screengrab of the process for your particular query…

On the other hand, continuing to use something merely because you already paid money for it is a sunken costs fallacy.

Use whatever works best for you, not whatever you already paid for.

Re: Textmate to VIM

#5
> :e FILENAME Use Tab completion after typing the first few letters You may need to save your current file first

If you need to save before opening another file, then you should add set hidden to your ~/.vimrc

It is a crime this isn't the default.

Re: Textmate to VIM

#6
post #4

Earlier quoted context omitted.

There's no need to abandon something you've paid money for to utilise features which are otherwise free... http://www.sublimetext.com/docs/2/vintage.html https://github.com/sublimehq/Vintage If you're fortunate enough to be using Sublime on OSX, finding a shortcut is easy as: 1. Opening the help menu - "Command-?" (Command-Shift-/) 2. Entering search terms Here's a screengrab of the process for your particular query…

On the other hand, continuing to use something merely because you already paid money for it is a sunken costs fallacy. Use whatever works best for you, not whatever you already paid for.

Thank you for completely overlooking any of the relevant issues I have attempted to alleviate.

This is why we can't have nice things.

Re: Textmate to VIM

#7
post #2

Nice! I just recently switched from Sublime to Vim... this will come in handy!! I've been trying to figure out how to do "Move selected text up" in Vim... Thanks!

Just put following line in your .vimrc

nnoremap sw kddpk

After that press ,sw to move the line upward.

Re: Textmate to VIM

#8
post #4

Earlier quoted context omitted.

On the other hand, continuing to use something merely because you already paid money for it is a sunken costs fallacy. Use whatever works best for you, not whatever you already paid for.

Thank you for completely overlooking any of the relevant issues I have attempted to alleviate. This is why we can't have nice things.

Aside from the sunken cost fallacy, all you've done is link how to get partial Vi (not Vim, nor even the Ex functionality you find in stock Vi.) functionality in sublime and tell him how to use documentation. I have a feeling that anyone that has decided to switch knows about those things.

As far as I can tell he wasn't even asking for help with sublime, nor did he lay out his reasons for wanting to switch away.

Re: Textmate to VIM

#9
cmd-o, cmd-s and so on Just Work in macvim too.

cmd-c is "*yy in vim. Just yy writes to vim's internal clipboard, not to the system clipboard.

Re: Textmate to VIM

#10
This is a really good overview. I've only been using VIM full time (more or less) for about a year so I know there's still a lot to learn. Every article has a little hint in there somewhere. I didn't know about moving lines up / down like that.
Post reply on HN