LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-25-2012, 03:26 PM   #1
ufmale
Member
 
Registered: Feb 2007
Posts: 385

Rep: Reputation: 30
vi syntax on default for cygwin


where do I set the "syntax on" to be a default for vi on cygwin? I create a file call vimrc.vim under C:\cygwin\usr\share\vim\vim73\ folder, with "syntax on" in it. However, it does not work.. please help
 
Old 07-25-2012, 08:38 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
I've never actually used cygwin myself, but in *nix generally, its a 'hidden' file '.vimrc' in the user's home dir.
If cygwin has an equiv 'home dir', try that, or maybe check the docs over at http://www.vim.org/

... aha; try this http://stackoverflow.com/questions/1...file-in-cygwin
 
Old 07-26-2012, 05:43 PM   #3
ufmale
Member
 
Registered: Feb 2007
Posts: 385

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by chrism01 View Post
I've never actually used cygwin myself, but in *nix generally, its a 'hidden' file '.vimrc' in the user's home dir.
If cygwin has an equiv 'home dir', try that, or maybe check the docs over at http://www.vim.org/

... aha; try this http://stackoverflow.com/questions/1...file-in-cygwin
Yes. I fixed it.. .vimrc at the home dir. THanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can I get "ordinary" scrollbars, as Cygwin X server can't display the default ones? david.karr Linux - Software 5 06-01-2012 12:23 PM
syntax error on running configure file in cygwin sugan General 1 10-08-2010 02:34 AM
running wget from .bat using cygwin - syntax question alpinescott Linux - General 3 02-02-2010 02:58 PM
Could I get rid of Cygwin.dll/Cygwin1.dll in program compiled under Cygwin ? Kunsheng Programming 1 05-17-2009 09:30 PM
Have you ever used cygwin, i've met a problem with the command stat from cygwin andy820303 Linux - Newbie 0 03-11-2009 04:37 AM


All times are GMT -5. The time now is 06:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration