I've recently discovered how cool gambit is in the following way:
I have some interpreted code, it's running kind of slow, so I compiled my code, and got an automatic 5x speed up. Yay!!
Here's the problem though: foo.scm -> foo.o1, in the same directory. This is bad for one reason -- it screws up tab completion; I can no longer do things like:
vim fo<TAB>; since it gets stuck at "foo." ... so is there anyway to make both compilation and load default to somethign like "foo.scm" -> _foo.o1 or .foo.o1 ? I realize I can manually hack this, but if there was a global default, that'd be really cool too (interpreting the path for load + rewriting it seems a bit hacky)
Thanks!
Afficher les réponses par date
Just throw the following in your .bashrc complete -o filenames -f -X '*.o*' vim
It will filter out the .o* files from your tab completion.
On Mon, Jun 8, 2009 at 2:19 PM, lowly coderlowlycoder@huoyanjinjing.com wrote:
I've recently discovered how cool gambit is in the following way:
I have some interpreted code, it's running kind of slow, so I compiled my code, and got an automatic 5x speed up. Yay!!
Here's the problem though: foo.scm -> foo.o1, in the same directory. This is bad for one reason -- it screws up tab completion; I can no longer do things like:
vim fo<TAB>; since it gets stuck at "foo." ... so is there anyway to make both compilation and load default to somethign like "foo.scm" -> _foo.o1 or .foo.o1 ? I realize I can manually hack this, but if there was a global default, that'd be really cool too (interpreting the path for load + rewriting it seems a bit hacky)
Thanks!
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
On 8-Jun-09, at 5:19 PM, lowly coder wrote:
I've recently discovered how cool gambit is in the following way:
I have some interpreted code, it's running kind of slow, so I compiled my code, and got an automatic 5x speed up. Yay!!
Here's the problem though: foo.scm -> foo.o1, in the same directory. This is bad for one reason -- it screws up tab completion; I can no longer do things like:
vim fo<TAB>; since it gets stuck at "foo." ... so is there anyway to make both compilation and load default to somethign like "foo.scm" -
_foo.o1 or .foo.o1 ? I realize I can manually hack this, but if
there was a global default, that'd be really cool too (interpreting the path for load + rewriting it seems a bit hacky)
You can use the -o option to choose the name of the object file:
% gsc -o _foo.o1 foo.scm % gsi _foo
Marc
Within vim, read :he wildignore
P!
2009/6/9 lowly coder lowlycoder@huoyanjinjing.com:
I've recently discovered how cool gambit is in the following way:
I have some interpreted code, it's running kind of slow, so I compiled my code, and got an automatic 5x speed up. Yay!!
Here's the problem though: foo.scm -> foo.o1, in the same directory. This is bad for one reason -- it screws up tab completion; I can no longer do things like:
vim fo<TAB>; since it gets stuck at "foo." ... so is there anyway to make both compilation and load default to somethign like "foo.scm" -> _foo.o1 or .foo.o1 ? I realize I can manually hack this, but if there was a global default, that'd be really cool too (interpreting the path for load + rewriting it seems a bit hacky)
Thanks!
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list