Just finished full installation of Nim language to my Debian GNU/linux and feel a bit confused, not finding any development kits or at least console commands to try some scripting… Isn’t it supposed to be included into instalation packages?
So I’ll be thankfull to any advice how to choose between all aviable IDE or interfaces for coding with Nim on Linux.
2
Answers
Nim isn’t included in any development kits as far as I’m concerned. There are a lot of editors with Nim addons though. That includes most popular editors like VSCode, emacs or vim.
If you wanted to you could just use a terminal as an interface with a simple editor.
Nim’s main entry point is the
nim
command. As long as you have that, you can compile and run nim programs all right:You can also embed that as a shebang into an executable
hi.nim
file and run it:But you will get a compiled binary without the
.nim
extension along the original file, so it’s kind of awkward for scripting.UPDATE: As suggested by @shirleyquirk you can also save
.nims
files with a special shebang that will run them as NimScript, which has some limitations compared to normal Nim code but should be fine for most if not all typical scripts.