Lococast.net Tech With Loco Flavor

25Aug/1013

Loco Screencast Vim 2: Tweaking is good for you

Lococast.net Screencasts Vim 2: Customizing is Good

Welcome to Lococast.net, screencasts. Today we make the sales pitch to go ahead and customize your vim configuration. The potential payoffs in productivity are huge for any developer. We'll run through some sample items that can make a big difference right off the bat and explain the various ways you can expect to customize things in vim.

Make sure to open this fullscreen or into a larger format so you can see it clearly. Video is recorded in 720p.

Let us know what you think or send us an email at feedback@lococast.net.

My Vim Config: http://github.com/mitechie/pyvim

Tagged as: Leave a comment
Comments (13) Trackbacks (0)
  1. I think this is the URL you referenced:
    http://code.google.com/p/vimcolorschemetest/

    • Yep, that’s exactly it. A great way to visually check out a ton of color schemes. Love that thing.

      • Hi Rick – thanks for the lessons!

        In one of your rants you spoke of how Vim excelled beyond what even an IDE like Eclipse can do, and in your 1st screencast you spoke about how splits enabled a better environment when dealing with MVC platforms. Both of those topics are my issues at hand and I need vim to help with that. I’ve downloaded your git repository mitechie/pyvim.git and I’m trying to learn these things.

        Questions:
        Are the configurations in this package good for this type of development (MVC, PHP, JS, jQuery, CSS, etc)?
        Knowing the environment I’m trying to address, is there anything else you can suggest I look into?

        Comment:
        One big factor to me is discovering the many classes / methods / objects inside a preexisting MVC framework. I was hoping to use Eclipse to help ascertain what exists within the framework without having to grep through all the files (i.e. var_dump(get_class_methods($var)) sort of thing). Initially, the obvious concern is providing TOO much information inside some IDE – almost replicating the same problem but within an IDE interface; but then it seemed I read where you can control the files that Vim looks into and reduce the prompts to only those applicable to your scenario (i.e. by looking into just the files that are open, or just within a path). Can you please comment on that?

        Thanks for the help.

        Rick
        BTW: Do you have a donation link?

        • My pyvim repo is a vim config that’s better tweaked for Python programming. I used to do a lot of PHP work and there’s a another repo in my github list just called “vim” that is more PHP centric.

          The completion for an existing framework is hit or miss. Especially in dynamic languages like Python or PHP. You can get some things out there, but I rely more on documentation and viewing the framework source code often times. I do use tools like ctags to help me jump from the code using the framework I write, into the framework files themselves to help me view what’s available.

          No donation link at this time. I guess it’s something we can check out, but we’re doing the stuff at Lococast because it’s fun and I know I really enjoy discussing the stuff. Thanks for the comments!

  2. …installing your package i got this error:

    Error detected while processing /home/ricalsin/.vimrc:
    line 483:
    E484: Can’t open file /usr/local/ropevim.vim

    There is no such file, do I make a blank file or i something else missing?

    • Sorry, if you check out the top of the .vimrc file in the comments it notes there are a couple of package dependencies. One of them is ropevim. It’s a python tool to help work with Python projects that allows for some completion, refactoring, and “go to definition” features.

      Go down to around:
      https://github.com/mitechie/pyvim/blob/master/.vimrc#L483

      And pull that stuff along with the ropevim plugin line from the bundle file.

      Or you can install the package. Since it’s python you can install it with either pip or easy_install.

      • Rick, I’ve forked your vim repo and would like to rsync to my new repo of it. I see the lines of code regarding the paths, but I am a bit confused on how the zsh and rope py scripts work to make this happen (or do they?).

        I think you’re planning to do a screencast on this, but can you give some “Christmas Time” advice – so I can make it go sooner than later?

        Thanks!

        • I’m not quite following 100%. Are you looking to ‘install’ everything? In order to do that I just run the ‘install.py’ script. I think the only path issue would be that I have my pyvim checkout in ~/configs/pyvim. So it does things such as install plugins, to ~/configs/pyvim/bundles and then symlinks those directories to my user account as ~/.vim and ~/.vimrc

          If you mean to rsync to a remote machine, that’s the vimsync.sh and it might not work for you ootb. I’ve not used it lately and since it relies on a git branch ‘portable’ it might not be ready to go.

          Let me know if I’m not following what you mean 100%. Sorry.

          • I think I got my answer: I’m wanting to rsync to my git repo – instead of yours. I realize the “portable” repo settings will be different for me. I was concerned if I would need the rope.py plugin, which I never installed (but commented out in the vimrc). By your response, it seems as though both rope.py and the zsh is not a requirement for rsync’ing to a git repo, which was essentially my question.

  3. Your video is messed up at 9:00. One moment you are talking about highlighting search terms and then mid-sentence you are cut off and then somewhere else in the config talking about something else entirely. Consequently, you didn’t finish talking about the search highlighting.

  4. Yay, I learned something new. Thanks.

  5. This screencast is awesome!
    I’m a Vim beginner but as you I love tweaking and customizing stuff to suit my needs and I can see you approach things from a similar angle so I’d love to see some casts about how you work and/or have your computer/programs set up, etc. basically how you optimized your working environment.


Leave a comment

No trackbacks yet.