This repository contains a beginner tutorial for Termux and Vim, well what is termux? and latest version here!!
commands | usage |
---|---|
first command | this table is coming soon |
mkdir <.../path/directory-name>
mkdir
stands for make directory (folder)
touch <.../path/file-name>
rm -r <file path>
rm
stands for remove
mv <old file path> <new file path>
mv
stands for move
termux setup storage
- install vim text editor
pkg install vim
- open shared storage
vim ~/storage/shared/
cd <.../path/directory-name>
to open a directory and using it as current directorycd
to get out of the current directory againvim ./
to open the current directory and inspect it, you can see the list of all the folders and files this directory contains using this command
vim <.../path/file-name>
to open the filei
to insert texts and edit the filealt
+:
+w
to save a filealt
+:
+q!
to exit file without savingalt
+:
+wq
to save and exit the filealt
+:
+w
+<file rename>
to rename and save the filealt
+:
+wq
+<file rename>
to rename the file, saving and exiting
ctrl
+4
ctrl
+d