This article is for students who do not have access to a laptop. You can still learn C using an android device (android 1, iphone 0).
Installing F-Droid
This is a third party app repository and houses the most recent version of Termux. Download the latest version of the F-Droid apk using this link.
Installing Termux
Open F-Droid and search “Termux”. Download the Termux and Termux Styling apps from the list. You will have to allow F-Droid to install from unknown sources.
Updating Termux repos
Termux uses the pkg package manager, although it also ships with apt. Open Termux and execute the following command:
pkg update
This will retrieve the information on packages that can be upgraded. We then upgrade these packages with the following command:
pkg upgrade
Choosing a color and font
While in Termux, long press the screen and select More…. Select Style and choose a color and font. I recommend Argonaut with Fira Mono.
Installing Neovim
Neovim is possibly the greatest text editor on Earth and is the preferred choice of seasoned software developers. We will use it as our main editor.
pkg install neovim
Neovim will look very plain when we open it using the command:
nvim
We can check the version of Neovim by running:
nvim --version
Installing Git
Git is used for version control and saving files to online repositories such as Github. We will use it to get the configuration files for Neovim. To install git, run the following command:
pkg install git
Configuring Neovim
We need ripgrep and clang in order for the Neovim config to work. Install ripgrep:
apt install ripgrep
Install the clang compilers:
pkg install clang
Cloning kickstart.nvim
This is a good starting point for your Neovim config. We can install it using git:
git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME:-$HOME/.config}"/nvim
Installing Tmux
This is not to be confused with Termux. Tmux or Terminal Multiplexor is used to create and manage sessions in your terminal. With it, we can have multiple panes and windows and sessions all running within Termux at the same time.
pkg install tmux