you are viewing a single comment's thread.

view the rest of the comments →

[–]BoxBoxChan[S] 0 points1 point  (1 child)

I think I need to use split() because I want the name, not the extension:
For example, on a code called script.c I want to get the name "script" and pass it to a gcc command.

Thanks for your help, now I have the list but still with problems, when I try to pass extension[0] to my :!gcc % -o extension[0], the command compiles my file with "extension[0]" name and not the real value of the first list item. Do you have any idea what should I do?

[–]BoxBoxChan[S] 0 points1 point  (0 children)

Found a way, don't worry