Slashdot Mirror


User: dwater

dwater's activity in the archive.

Stories
0
Comments
2,374
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 2,374

  1. Re:Replacement on (Useful) Stupid Vim Tricks? · · Score: 1

    > why bother...?

    because it can be faster...it all depends on the cursor movement you need/want to use (and what you're used to too, I guess).

  2. Re:Replacement on (Useful) Stupid Vim Tricks? · · Score: 1

    you didn't mention what the plugin was for eclipse...are you using eclim, or something else?

  3. Re:Replacement on (Useful) Stupid Vim Tricks? · · Score: 1

    not sure how they can justify the 'plain old text' description...

  4. Re:use vim commands to browse in Firefox on (Useful) Stupid Vim Tricks? · · Score: 1

    I've been using vimperator for a little while. It takes a lot of getting used to, but I think it's a revelation in web browsing.

    http://vimperator.org/trac/wiki/Vimperator

    I wish I could edit in text areas like this one using vim, but it doesn't seem to do that - perhaps there's an option I haven't found yet.

  5. Re:Getting copy/paste to work on (Useful) Stupid Vim Tricks? · · Score: 1

    I'm curious why you start all your commands with 'escape'?

  6. Re:Unlimited undo, and of course, suspend... on (Useful) Stupid Vim Tricks? · · Score: 1

    > Stripping out ALL comments and empty lines from files where comments begin with hashes: :g/^\s*\(#\|$\)/d

    Curious....why do you use \( and \) in that?

  7. Re:I've got a question actually on (Useful) Stupid Vim Tricks? · · Score: 1

    I think the real answer to the question is 'no'.

    I can't think of any technical reason why it couldn't do it though. Perhaps there's a security reason.

  8. Re:Esc ends commands, not starts them on (Useful) Stupid Vim Tricks? · · Score: 1

    I think he means that the whole word 'are' is going away...which makes me wonder what will happen on pirates' day a few years from now.

  9. Re:Need a way to un-highlight on (Useful) Stupid Vim Tricks? · · Score: 1

    > it will automatically unindent it to the correct place

    It totally depends on the definition of 'correct'; it is often defined by the organisation for which you work. For example (although this is C++ rather than C, the same point applies) Qt has a particular 'style', and Symbian another, even though they're both C++.

    However, it is possible to write your own indent rules. See here for an example (which is actually broken, but anyway) :

    http://vim.wikia.com/wiki/Indenting_for_Qt_C%2B%2B

    and it's likely worthwhile spending some time developing the rules, esp. if there are more than just one of you using vim.

  10. Re:my most frequent vi trick on (Useful) Stupid Vim Tricks? · · Score: 1

    Do people really think such comments are funny?

    One person I know who uses emacs commented that it was possible to write 'vi' in emacs. My reply was along the lines of, "What a waste of time. Just use 'vi'".
    Some people are really poor at making a point. It was only a little later that I realised he meant to indicate the power/flexibility of emacs - as a 'vi' user who's never used emacs, it didn't occur to me right away.

  11. Re:retab on (Useful) Stupid Vim Tricks? · · Score: 1

    you might also consider 'set sw=N' to have your auto indent use the same indent increments.

  12. Re:= and * on (Useful) Stupid Vim Tricks? · · Score: 1

    '=' doesn't indent as such (it might not be deemed 'necessary')...it formats. The difference being that it totally depends on other formatting settings. I forget which...

  13. Re:'' will also indent on (Useful) Stupid Vim Tricks? · · Score: 1

    I think you mean, "*Unless* you're in insert mode", since *in* insert mode, typing '>>' will insert two '>' chars.

  14. Re:= and * on (Useful) Stupid Vim Tricks? · · Score: 1

    I knew '#' for a long time, and got annoyed that it always searched backwards. '*' searches forwards and was a minor revelation.

    However, what I just loved was doing a '*' or '#' on a word, then ':s//sometext/' - vim automatically puts the searched for text in the '//' that you want to replace. Works with any search actually.

  15. Re:Couple off-hand on (Useful) Stupid Vim Tricks? · · Score: 1

    > I use dgg (delete to top of buffer) and dG (delete to bottom of buffer) ALL the time

    Wow! You must have a lot of empty files!

    ..or perhaps just one file, since you have no time to write it and move to the next...and you're just being extremely zealous at keeping it empty.

  16. Re:Couple off-hand on (Useful) Stupid Vim Tricks? · · Score: 1

    ...and 'z+' which is like a 'page down' since it puts the line below....or something (it's not doing what I thought it did when I try it).

  17. Re:Couple off-hand on (Useful) Stupid Vim Tricks? · · Score: 1

    > dL - Delete to end of page, in other words, everything visible.

    That's only true if your current position is the top of the page, since it actually deletes from the current line to the bottom of the page.

    'dL's sister command is 'dH', which is delete to the top of the currently visible text.

  18. Re:Filter Lines on (Useful) Stupid Vim Tricks? · · Score: 1

    Fold, eh? That's interesteding. I've always used 'fmt'. It seems like the behaviour is similar - I wonder if there are any differences to make me want to type the extra chars for the fold command?
    Doing the 'fold -s -w30' and 'fmt -w30' on identical texts shows that they indeed do something different...hrm.

  19. Re:Only foreigners care on Explore the Web From China · · Score: 1

    I was more commenting on the complete lack of interest in web sites *outside* China, rather than oppression, per se.

    I think the people care about oppression on the whole, but I don't think most people consider blocking web sites as much to do with that.

    Personally, I wonder why they bother...

  20. Only foreigners care on Explore the Web From China · · Score: 3, Interesting

    Almost no one in China cares about the firewall. The only sites the Chinese want access to are already on their side - the majority of them can't read anything but Chinese anyway.

    It's really only foreigners that care.

  21. Re:Package Managers? on OpenOffice.org V3.0 Sets Download Record, 80% Windows · · Score: 4, Funny

    hrm...2hrs for a 2 yo laptop

    so, I guess 1hr for a 1 yo laptop

    I see a pattern :)

    If I buy a brand new laptop, it'll be compiled instantly, right?

  22. Re:I'd go iPhone: on Which Phone To Develop For? · · Score: 1

    there's no mention of having to sell the s/w and he did mention price was a bit of an issue so i'd say most of your points are (potentially) irrelevant. He/she also didn't mention if and 'ipod' would do and since he asked for mobile phones, i'd say an ipod wouldn't do.

    If it were me, I would buy the cheapest nokia phone that run s60 and develop for that. A specific model....perhaps the 6220, or even the 6120 if it's still around. No contract necessary though I'd guess many SPs have them for free on a contract.

    Max.

  23. more powerful? on New State of Matter Could Extend Moore's Law · · Score: 1

    > following the application of the most powerful continuous magnetic field on Earth.

    Isn't the Earth itself the most powerful continuous magnetic field on Earth?

    If it were actually talking about the magnet itself, then it could be argued that the Earth's magnet is it's core, which isn't *on* Earth but *in* Earth ... but they said 'magnetic field', so I think they're wrong.

  24. Most advanced? on Inside the World's Most Advanced Planetarium · · Score: 1

    I wonder what makes this more advanced than, say, the Beijing planetarium driven by six SGI IR4 pipes.
    A quick look through the article doesn't impress - well not from a hardware standpoint anyway. What did I miss?

  25. Re:Play the game or go to a higher authority on Bringing OSS Into a Closed Source Organization? · · Score: 1

    > Cost is rarely a concern. So save the fact that it is free as an additional argument that you can make if [single person] suggests some other app.

    Was (fiscal) cost mentioned at all here? Sure, all the open source products mentioned also are cost free, but Open Source != Cost Free.

    Also, Open Source doesn't mean anyone can 'just change the code'. You can *fork* the code and change that, but I don't see how you can change the code in, for example, Red Hat Enterprise Linux, to name but one, even though it is Open Source.

    I wonder if the submitter actually tried asking for some Open Source s/w that is *not* cost free.

    ...or do I have this all wrong?