Live data from Hacker News

Am I the Only One Who Uses a Text Editor to Edit Files?

blog.peepcode.com

141–150 of 165 posts

Re: Am I the Only One Who Uses a Text Editor to Edit Files?

#141
post #104

Vim has this nice feature where you can edit directories as well as files. Just say: vi dir Now you're looking at a directory listing, and you can move down to an entry and press Enter to go there. When you're inside a file, you can go back up with: :e .. You can also use wildcards and tab completion. I suppose for finding routines you can use ctags, though I haven't bothered with that in quite a while.

That didn't work for me with nvi or vim, it just says, "/usr is a directory". Does it require an extension? (I'm assuming your 'vi' is a symlink to 'vim', which is not always the case.) Similarly, Emacs has dired, and in some extensions you can edit the file metadata in place and hit save to rename files, chmod, etc.

The behavior seems to be part of vim's netrw plugin. Aside from the obvious `:help netrw` you may find `:help standard-plugin-list` interesting.

(netrw has always been enabled-by-default for me, but I've spent most of my time on desktop-oriented Linux distros.)

Re: Am I the Only One Who Uses a Text Editor to Edit Files?

#142
post #100
post #19

Earlier quoted context omitted.

I think your attitude is overly dismissive. At least, I'd have a hard time writing someone off as a "typical designer" (a bit of a tired stereotype) if they're experienced in both vim and emacs, let alone work for Peepcode. The author offered a sustained, reasoned argument for better navigation within projects. I agree that as a programmer, I care about functionality and tools that get out of my way so that I can get…

If you've had trouble setting up fuzzy_finder textmate, check out my post: http://codeulate.com/2010/02/installing-fuzzyfinder_textmate... I walk you through it step by step.

I've gone through this process a number of times on different computers so I imagine that others will find this quite useful. Thanks for writing it up!

As an aside, I think you can just download the 2.16 version of fuzzyfinder from vim.org and it will work with Jamis' plugin. That's the version I use - love this plugin and I doubt I'd be able to use vim without it!

Re: Am I the Only One Who Uses a Text Editor to Edit Files?

#143

Earlier quoted context omitted.

Works over SSH: not so much.

Try with X forwarding turned on next time ;) Most GUI apps work just fine over SSH.

Not so much over high latency trans-atlantic connections with low bandwidth, which is something that works perfectly fine with a terminal based editor.

Re: Am I the Only One Who Uses a Text Editor to Edit Files?

#144
post #3

Am I the only one that found staring at orange hard on the eyes? I guess I should give the author credit for all the work that they put into this rant, seems like a blog post could have done just the same without all the fancy graphics and what not.

This is part of Geoffrey Grosenbach's project to use a different design for each blog post; see http://blog.peepcode.com/tutorials/2010/about-this-blog. (Not that I'm endorsing the rather orange design, but that's the motivation.)

Re: Am I the Only One Who Uses a Text Editor to Edit Files?

#145
post #104

Vim has this nice feature where you can edit directories as well as files. Just say: vi dir Now you're looking at a directory listing, and you can move down to an entry and press Enter to go there. When you're inside a file, you can go back up with: :e .. You can also use wildcards and tab completion. I suppose for finding routines you can use ctags, though I haven't bothered with that in quite a while.

I use this all the time. Its the best way I've found to deal with the hassle of the rails migrations naming scheme.

vim db/migrate

then I can easily find the file I'm looking for and quickly open other migration files for reference.

Re: Am I the Only One Who Uses a Text Editor to Edit Files?

#146
I'm suprised Geoffrey doesn't mention that you can switch between TextMate tabs without the mouse using ⌘1, ⌘2, ⌘3, etc. I navigate Rails projects through a combination of ⌘t (fuzzy search), ⌘n (move focus to tab n), and the occasional side-menu mouse click, which works well for me.

Re: Am I the Only One Who Uses a Text Editor to Edit Files?

#147
post #73

Earlier quoted context omitted.

There's also quite a difference between the orange on this site (a harsh electric orange) and the relatively mild and somewhat popular shade of orange on the article, so I think it's a wash.

I don't think that there's that much of a difference - The site starts out the same colour as the header, in fact, and fades gradually. The majority of the piece, however, is on quite bright orange. http://omploader.org/vM3h3OA/Sample.PNG (HN topbar, start of site, middle of site, bottom of orange section of site.)

I suppose the main argument was: “So what? Orange is not hard to read on. It sounds like you're complaining because you like to complain about different things.”

Appropriate contrast was maintained, the entire design was not overly luminescent. Since it was the background color it did not create a wicked eye-draw the way the banner at the top of our comment pages here do.

If you don't like unusual designs then you shouldn't read peepcode; a magazine format is one of their boasted mission statements.

Re: Am I the Only One Who Uses a Text Editor to Edit Files?

#148
post #119
post #62

Earlier quoted context omitted.

Everyone wants to be Dustin Curtis. Still, the author calling HN posters Neanderthals was a nice touch.

“Still, the author calling HN posters Neanderthals was a nice touch.” In this case quite appropriate, though. Having to scroll down one third of the page before you get to anything resembling a meaningful discussion about the actual content of the article cannot possibly be a good thing. Neither can the sneer and arrogance displayed in this thread. (I’m kind of aware of the irony of me participating in this thread. R…

That's the downside of a design-heavy blog post: people will talk about your design first.

Re: Am I the Only One Who Uses a Text Editor to Edit Files?

#149
post #119

Earlier quoted context omitted.

“Still, the author calling HN posters Neanderthals was a nice touch.” In this case quite appropriate, though. Having to scroll down one third of the page before you get to anything resembling a meaningful discussion about the actual content of the article cannot possibly be a good thing. Neither can the sneer and arrogance displayed in this thread. (I’m kind of aware of the irony of me participating in this thread. R…

That's the downside of a design-heavy blog post: people will talk about your design first.

Really? That’s where you want to go? It’s the author’s fault that people here talk (mostly) rubbish for trying to make his post look great (even if he falls short)? I don’t quite follow.

Re: Am I the Only One Who Uses a Text Editor to Edit Files?

#150
post #138

Earlier quoted context omitted.

That didn't work for me with nvi or vim, it just says, "/usr is a directory". Does it require an extension? (I'm assuming your 'vi' is a symlink to 'vim', which is not always the case.) Similarly, Emacs has dired, and in some extensions you can edit the file metadata in place and hit save to rename files, chmod, etc.

Right, I'm talking about vim. On Ubuntu, by default, my "vi" is vim. I'm surprised it didn't work for you using vim explicitly. It works for me using versions 7.1.138 and 7.2.245, from fresh installs, by default, with no fancy configuration or add-ons. When I run vim on /usr, it shows me a directory listing which I can browse and edit. I can create, delete, and rename directories and files right there.

I probably just don't have the relevant plugins installed. I installed vim on this computer for some reason or another, but I usually use Emacs or nvi.
Post reply on HN