The VIM echo command

As with many other technologies, VIM can echo messages, if you are coming from a contemporary editor, this can hit differently. First, the result of all the echoed messages is visible in the status bar at the bottom of the screen, Secondly, previous messages can be accessed with the :message command. To echo a message, enter the command mode (ESC or CTRL-C), then type the below command: :echo "Hello World" This should print out Hello World to the status bar, but would not preserve the message for later reference....

February 7, 2024 · 3 min · Aleem Isiaka

Change files extension in a directory

A onliner for f in *.old; do mv "$f" "${f%.old}.new"; done How??? To change the name of a file on Linux/Unix use the mv command mv currentfilename newfilename If there is a file named aleemisiaka.old and want to rename to aleemisiaka.new We can store the filename to a variable with export FILENAME=aleemisiaka And use the variable name in the mv command mv "$FILENAME"$ "$FILENAME.new" This renames the file from aleem-isiaka.old to aleemisiaka....

June 22, 2023 · 1 min · Aleem Isiaka