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.
LOVE and vim
- qubodup
- Inner party member
- Posts: 775
- Joined: Sat Jun 21, 2008 9:21 pm
- Location: Berlin, Germany
- Contact:
Re: LOVE and vim
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.
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)
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
Re: LOVE and vim
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)
- 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
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.
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!
Now, outgay that!
Re: LOVE and vim
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?
Sardtok: do you know LISP?
Re: LOVE and vim
KILL IT! KILL IT WITH FIRE!appleide wrote:LISP?
Now posting IN STEREO (where available)
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: LOVE and vim
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!.
- 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
Nah, I've never looked into it. It looks like it has an interesting syntax, though.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?
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!
Now, outgay that!
Re: LOVE and vim
vim only good for simple text editing...
what is coding if not simple text editing?
what is coding if not simple text editing?
- 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
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.
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!
Now, outgay that!
Who is online
Users browsing this forum: No registered users and 4 guests