LOVE and vim

General discussion about LÖVE, Lua, game development, puns, and unicorns.
jcw
Prole
Posts: 3
Joined: Mon Jun 22, 2009 3:40 pm

LOVE and vim

Post by jcw »

Just wondering how people using vim to code lua and LOVE get things done.
I jump around by searching, but has anyone gotten folding or a function/class browser to work?

I've mapped ",l" to "!open .", which in OS X runs the game. Every time I make an edit, I just hit ctrl+x (mapped to :w!) and ,l, which saves and runs the game very quickly.
User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: LOVE and vim

Post by qubodup »

I probably use as much of vim's capabilities as I do of my brain and I'm also afraid of reading manuals :|

I did read a vim noob guide a while ago where folding was mentioned - apparently it works out of the box. I suppose http://www.vim.org/htmldoc/fold.html will have a detailed answer. http://www.linux.com/archive/articles/114138 has a cheat sheet.
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
User avatar
mike
Administrator
Posts: 364
Joined: Mon Feb 04, 2008 5:24 pm

Re: LOVE and vim

Post by mike »

I use vim at work sometimes... I know how to use :wq and :q!. I'm not much of a hacker :(
Now posting IN STEREO (where available)
User avatar
Sardtok
Party member
Posts: 108
Joined: Thu Feb 21, 2008 2:37 pm
Location: Norway/Norge/諾威/挪威 (Yes, I'm teh back!)
Contact:

Re: LOVE and vim

Post by Sardtok »

Yeah, I'd go with Mike.
I only use vim for some simple text editing.
For code I'd much rather use emacs, or a proper GUI-based IDE.
Take off every Zigg for great rapist.
Now, outgay that!
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: LOVE and vim

Post by appleide »

I'm with mike too. I'd much rather use Smultron. I use vim occasionally in uni though, only because I had to use putty on windows.

Sardtok: do you know LISP?
User avatar
mike
Administrator
Posts: 364
Joined: Mon Feb 04, 2008 5:24 pm

Re: LOVE and vim

Post by mike »

appleide wrote:LISP?
KILL IT! KILL IT WITH FIRE!
Now posting IN STEREO (where available)
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: LOVE and vim

Post by bartbes »

I use vim most of the times, I love the way indenting just works. Anyway, I don't know how I set it up, but I enabled auto-syntax-highlighting and auto-indenting and all I need to do now is :w :q :wq and :q!.
User avatar
Sardtok
Party member
Posts: 108
Joined: Thu Feb 21, 2008 2:37 pm
Location: Norway/Norge/諾威/挪威 (Yes, I'm teh back!)
Contact:

Re: LOVE and vim

Post by Sardtok »

appleide wrote:I'm with mike too. I'd much rather use Smultron. I use vim occasionally in uni though, only because I had to use putty on windows.

Sardtok: do you know LISP?
Nah, I've never looked into it. It looks like it has an interesting syntax, though.

Btw. if you have a good connection to your uni, you could use an X server and just have putty automagically export $DISPLAY to your machine.
I use vim whenever I need to do a quick edit, on my proxy, at work, and sometimes at uni, but for anything extensive… … Yeah, you know.
Take off every Zigg for great rapist.
Now, outgay that!
User avatar
subrime
Citizen
Posts: 76
Joined: Thu Nov 13, 2008 6:18 pm
Location: Australia

Re: LOVE and vim

Post by subrime »

vim only good for simple text editing...

what is coding if not simple text editing?
User avatar
Sardtok
Party member
Posts: 108
Joined: Thu Feb 21, 2008 2:37 pm
Location: Norway/Norge/諾威/挪威 (Yes, I'm teh back!)
Contact:

Re: LOVE and vim

Post by Sardtok »

Coding is complex text editing.
I can't imagine working on a project with many files at the same time in vim, I'm sure it can handle multiple buffers like emacs, but I prefer a tabbed text editor/IDE for that.

And btw. I've never had to do any setting up to get colouring in vim. It just works out of the box (but there's probably some config file that comes with the vim package).
I actually use it quite a lot at work, so I can read strings in one localization file while translating another, and the G command (go to line) comes in handy with xargs grep -in fed by find.
Take off every Zigg for great rapist.
Now, outgay that!
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests