PLEASE NOTE: the upgrades to this server,, have not yet been completed.
Hopefully the changes will be completed on THURSDAY 8th December.
Web-based programs, such as csmarks, cssubmit, and the help fora, will be unavailable at some time on Thursday 8th.
  It's UWAweek 49


This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying selected article
Showing 1 of 564 articles.
Currently 4 other people reading this forum.

 UWA week 13 (1st semester, week 5) ↓
SVG not supported

Login to reply

9:12pm Thu 31st Mar, Michael W.

Hi, This query came to me via Daniel Smith. People who have been watching carefully as it did my demos have noticed that at times I have typed: :!% on a new line. My apologies; it is rather useful, but also rather obscure (though covered in your introductions to Vim). Vim has two modes: an input mode, at the top of the window, where you get to add new text for example a Bash script. However, when you have finished input mode, e.g. by hitting the <ESC> key and then type : that takes you to the bottom of the window, where you enter command mode. In command mode you can enter editing commands, e.g. :1,$s/$/.txt/ which adds .txt to the end of every line. (This will make more sense in a couple weeks, when we do regular expressions.) The other thing you can do in command mode is temporarily leap out of the editor to execute a command, using ! at the start of the command :!pwd print the current working directory. Finally, % represents the current file, so :!% Alice* means go into command mode and execute the command which just happens to be the current file name, with the argument Alice* I was rushing to get the demo to work. Still, if you don't understand things, PLEASE ask! Cheers MichaelW

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy