The Artima Developer Community
Sponsored Link

Java Buzz Forum
Cygwin Notes

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Weiqi Gao

Posts: 1808
Nickname: weiqigao
Registered: Jun, 2003

Weiqi Gao is a Java programmer.
Cygwin Notes Posted: Aug 24, 2004 5:12 PM
Reply to this message Reply

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

Advertisement

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

Topic: The VMWare hell Previous Topic   Next Topic Topic: [Aug 13, 2004 02:05 PDT] 6 Links

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use