go Convenience script for test-driven development (TDD). This compiles your code, runs it, and compares its output with your expected output in test_mintf.txt ______________________________________________________________________________ INSTRUCTIONS 1. Download this script into your HW06 directory (e.g., ~/264/hw06). cd ~/264/hw06 wget 'https://engineering.purdue.edu/ece264/17au/lecture/20170922/snippets/go' 2. Run the following command to make it executable: chmod 700 go 3. From bash, run the following: ./go The simplest way to work is run this in a separate SSH (PuTTY) window. You can also run ./go directly from your editor. (See below.) ______________________________________________________________________________ RUNNING ./go DIRECTLY FROM VIM You can run ./go directly from Vim: :!./go If that is too much typing, the following creates a shortcut: :map :wall:!./go Pressing F5 will save all files (:wall) and then run your ./go script (:!./go). To make that work every time you start Vim, add it to the bottom of your .vimrc: vim ~/.vimrc ______________________________________________________________________________ OPENING MULTIPLE FILES IN TABS OR SPLITS To open a file in a separate TAB: :tabe mintf.c .... or press the F2 key. :tabe is short for :tabedit To switch between tabs, press the TAB key. To open a file in a vertical split: :vs test_mintf.c .... :vs is short for :vsplit To open a file in a horizontal split: :sp test_mintf.c .... :sp is short for :split To switch between splits, press the F6 key. Note: F2 (open in tab), F6 (next split), and Tab (next tab) are enabled by the .vimrc file we provided as part of the setup in week 1.