|
This post originated from an RSS feed registered with Java Buzz
by Weiqi Gao.
|
Original Post: Cygwin Notes
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
|
Latest Java Buzz Posts
Latest Java Buzz Posts by Weiqi Gao
Latest Posts From Weiqi Gao's Weblog
|
|
The D programming language arrived at my Cygwin installation today. You just change all your c's to d's :) :
[weiqi@gao] $ cat foo.d
int main()
{
printf("hello, world.\n");
}
[weiqi@gao] $ gdc -o foo foo.d
[weiqi@gao] $ ./foo
hello, world
The Windows clipboard can be accessed as /dev/clipboard from the bash command line. Now I can do
[weiqi@gao] $ head -1 ChangeLog > /dev/clipboard
to put the first line of the ChangeLog into the clipboard, and !!cat /dev/clipboard in Vim to paste it into the CVS log:
CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in ...
~
~
~
:.!cat /dev/clipboard
The ascii command prints the ASCII table to stdout, including the beep.
Learned a few more tricks in Vim:
- The * command finds and highlights the next instance of the word under the cursor.
- The % command finds matching parenthesis, brackets and braces. It also finds matching #if/#else/#elseif/#endif's in C source files.
- Ctrl-n is the word completion command. It cycles through all possible completions. It knows about symbols from #included header files.
Did I say "header files"?
Read: Cygwin Notes