common-close-0
BYDFi
Trade wherever you are!

How can I use vi editor to write smart contracts for blockchain development?

avatarGimhani SridharaDec 26, 2021 · 3 years ago1 answers

I am new to blockchain development and I want to know how to use the vi editor to write smart contracts. Can you provide a step-by-step guide on how to write smart contracts using vi editor? I am specifically interested in using vi editor for blockchain development because I find it more efficient and lightweight compared to other text editors. Thank you!

How can I use vi editor to write smart contracts for blockchain development?

1 answers

  • avatarDec 26, 2021 · 3 years ago
    Writing smart contracts using vi editor is a great choice for blockchain development. Here's a step-by-step guide: 1. Open your terminal and navigate to the directory where you want to create your smart contract file. 2. Type 'vi' followed by the name of your file, for example, 'vi mycontract.sol'. Press Enter. 3. You will enter the vi editor. Press 'i' to enter insert mode and start writing your smart contract code. 4. Once you have finished writing your code, press the 'Esc' key to exit insert mode. 5. Type ':wq' to save the changes and exit the vi editor. That's it! You have successfully written a smart contract using vi editor. Happy coding!