in reply to Re: Professional Toolkits <=> vim + shell
in thread Professional Toolkits <=> vim + shell

Can you post a snapshot or something of that "code outline" feature? My emacs already embeds the debugger, automatic syntax checking/lint/perltidy, autocompletion, and a bit of xref.

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

  • Comment on Re^2: Professional Toolkits <=> vim + shell

Replies are listed 'Best First'.
Re^3: Professional Toolkits <=> vim + shell
by educated_foo (Vicar) on Apr 13, 2006 at 19:10 UTC
    Autocompletion? What are you using for that?
      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Autocomplete ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defadvice cperl-indent-command (around cperl-indent-or-complete) "Changes \\[cperl-indent-command] so it autocompletes when at the en +d of a word." (if (looking-at "\\>") (dabbrev-expand nil) ad-do-it)) (defun cperl-dabbrev-installer () (set (make-local-variable 'dabbrev-case-fold-search) nil) (set (make-local-variable 'dabbrev-case-replace) nil)) (eval-after-load "cperl-mode" '(progn (require 'dabbrev) (ad-activate 'cperl-indent-command) (add-hook 'cperl-mode-hook #'cperl-dabbrev-installer)))

      ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

        Okay. The Eclipse fanboys will say that doesn't complete methods and such since it's just textual, but dabbrev works well in practice, and is a wonderful thing for all kinds of documents. btw, one nice trick I use for indent-or-complete commands is to complete on the second "TAB" when the line hasn't moved, rather than when at end-of-word, like so (pseudocode):
        (defun my-indent-or-complete () (interactive) (let ((pos (point))) (indent-command) (when (and (= pos (point)) (eq last-command 'my-indent-or-complete)) (complete-command))))
Re^3: Professional Toolkits <=> vim + shell
by radiantmatrix (Parson) on Apr 14, 2006 at 15:03 UTC

    Sure thing, a wide screenshot slice will have to do, with Getopt::Long's source loaded in the editor window.

    Folding in Emacs or vim accomplishes much the same thing, so I wouldn't recommend switching to Eclipse for just this one convenience. I haven't been able to get folding working with EPIC (the Eclipse Perl plugin), but I found the mechanism under discussion to do what I wanted folding for. YMMV, of course.

    <-radiant.matrix->
    A collection of thoughts and links from the minds of geeks
    The Code that can be seen is not the true Code
    I haven't found a problem yet that can't be solved by a well-placed trebuchet
      People often overlook ctags, but it render more or less the same service with almost any existing editor.

        Indeed! In fact, Emacs and vim will use the tags files in a reasonably intelligent manner, making for a pretty nifty code browser. I'd nearly forgotten about it, thanks for the reminder.

        <-radiant.matrix->
        A collection of thoughts and links from the minds of geeks
        The Code that can be seen is not the true Code
        I haven't found a problem yet that can't be solved by a well-placed trebuchet