Results 1 to 7 of 7

Thread: Using Vim for Web development

  1. #1
    Join Date
    Nov 2008
    Beans
    97

    Using Vim for Web development

    Well I've been using vim for a week now after a failed attempt last time, but I'm beginning to see it's true power. I mostly do PHP,HTML,Javascript and the ocationaly python script. I'm using Komodo Edit right now but I was wondering if you could turn Vim into a Web Development IDE of sorts. What plugins should I use? Also I'm very fond of snippets, one of the reasons I use Komodo Edit, is there any snippet support for Vim besides snippetsEmu? I tried configuring but it didn't worked out :S.

    Thanks
    Software should be smart, not clever

  2. #2
    Join Date
    Apr 2007
    Beans
    75

    Re: Using Vim for Web development

    Maybe you'll find this link interesting, when your a bit more comfortable with vim:
    How to Debug PHP with Vim and XDebug on Linux

  3. #3
    Join Date
    Jul 2006
    Location
    Hertfordshire
    Beans
    454
    Distro
    Kubuntu 9.04 Jaunty Jackalope

    Re: Using Vim for Web development

    Quote Originally Posted by Rokurosv View Post
    I was wondering if you could turn Vim into a Web Development IDE of sorts.
    Well Vim is a programmable text editor, rather than an IDE. There are a whole host of plugins and scripts available on vim.org and tips/tricks on the Wiki, but Vim is a bit different to a conventional IDE, as you add these features yourself. An IDE usually provides a massive library of features out-of-the-box, most of which you never use or are even aware exists.

    With Vim, you also get to link features together and bind complex commands to specific keys, with a little tweaking of the scripts.

    Quote Originally Posted by Rokurosv View Post
    What plugins should I use?
    The best approach is to stick with just the basic editor until you find yourself missing something, then go onto the Vim sites and investigate possible solutions. It's worth knowing how to get in touch with the Vim community as well, as there are plenty of people around who will happily help you with problems.

    Quote Originally Posted by Rokurosv View Post
    Also I'm very fond of snippets, one of the reasons I use Komodo Edit, is there any snippet support for Vim besides snippetsEmu? I tried configuring but it didn't worked out :S.

    Thanks
    I'm not familiar with Komodo/TextMate snippets, or the snippetsEmu plugin, but from what I can see it looks like a form of macro support. There are a number of ways of making/replaying macros in Vim, the simplest being the "q" recording command.. You can also (with a bit of practice) write small functions in your .vimrc file to perform more complex tasks when you press a given key combination.

    However, if you are looking specifically into using TextMate snippets in Vim, then you might want to email the author of snippetsEmu and ask him for some help (his email address is given on the snippetsEmu script page). This way, you will get the plugin working more quickly, and he will be able to identify the trouble-spots with configuring his plugin and improve on the instructions.

  4. #4
    Join Date
    May 2009
    Beans
    1

    Re: Using Vim for Web development

    You might also like a link to a Vim color scheme I made specifically for HTML, PHP, CSS and JavaScript - most of your favorite web development languages as well.

    HTML


    CSS


    PHP


    JavaScript



  5. #5
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Using Vim for Web development

    Closed - necromancy

    well that was a fail - forgot to close it - I'll leave it open and see what happens
    Last edited by Elfy; May 31st, 2009 at 09:56 PM.

  6. #6
    Join Date
    Jul 2005
    Location
    EU - Belgium
    Beans
    48
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Using Vim for Web development

    Take a look at the slides from Andrei Zmievski's VIM for (PHP) Programmers presentation.
    The article also contains a link to his VIM setup which includes a whole lot of useful VIM scripts and shortcuts.

    I have been using them myself, and modified it to my needs, for quite some time now and it's pretty much basically all that's required.

  7. #7
    Join Date
    May 2010
    Location
    Vietnam
    Beans
    19

    Re: Using Vim for Web development

    Thanks for slides

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •