PLEASE NOTE: the upgrades to this server, secure.csse.uwa.edu.au, 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

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
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.

Displaying selected article
Showing 1 of 919 articles.
Currently 2 other people reading this forum.


 UWA week 31 (2nd semester, week 2) ↓
SVG not supported

Login to reply

👍?
helpful
9:40am Thu 4th Aug, Christopher M.

Adding coloured syntax-highlighting in vim. The default installation of vim simply displays its text in monochrome, but by adding commands to (one of) vim's "startup files", it will add colours to code keywords, comments, .... To download and add the necessary commands to vim's startup file: prompt> curl -o xxxxxx http://teaching.csse.uwa.edu.au/units/CITS2002/labsheets/vimrc prompt> cat xxxxxx >> ~/.vimrc prompt> rm -f xxxxxx Now, the next time you edit a, say, C file with vim if should provide coloured syntax-highlighting. If you're brave enough, you can manually change the colour-scheme by editing the ~/.vimrc file itself (using vim). And if you search the web for phrases such as "vim color scheme", you'll find many other pre-built schemes that you can download and install (usually in other vim startup files).

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