LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-12-2006, 01:35 AM   #1
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Script to start vim with a random colorscheme


Hi.

I've just written a simple shell script that starts up vim/gvim with a (semi) randomly selected colorscheme. The scheme is chosen by a given number generated by "date +%s" (seconds since 1970-01-01). If under X, the script will invoke gvim; otherwise it will use vim.

http://daihardM3.home.comcast.net/docs/myvi

I'd like to get your feedback on the script. Does the code look okay? Any room for improvement? Any bugs? Any comments are welcome.

Thansk!
Dai
 
Old 05-12-2006, 03:46 AM   #2
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 38
Thanks for sharing
I'd say include something on the 'usage' of the script.
http://linuxcommand.org/wss0130.php#..._the_processor
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Start Vim in alternate directory jrdioko Linux - Newbie 5 01-20-2006 10:03 PM
vi + default colorscheme alaios Linux - Software 2 06-29-2005 11:50 AM
Random Name Shell Script tebucky Linux - Newbie 2 04-27-2005 12:47 PM
Best Programming Colorscheme? (eyes/concentration etc) flamesrock Programming 10 02-10-2005 11:40 PM
start vim when vi is typed PlatinumRik Linux - Software 7 03-15-2004 04:24 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration