LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-06-2014, 10:51 AM   #1
StevenXL
Member
 
Registered: Jan 2014
Posts: 81

Rep: Reputation: Disabled
I want gvim to act like vim


Hi guys - I am kind of tired having to continually mess around with my terminal in order to get the vim colorscheme I am using to work correctly.

As a result, I am thinking of switching to gvim, but I want to function like vim. I just need the color functionality of gvim.

Is there an easy way to tell gvim to act like vim?

If there is not, can someone tell me how I can set gvim to wrap the text like vim does?

For example:

http://i.imgur.com/4FiAO32.png


As you can see, the item labeled 25, written using gvim, is way out of line with the rest of the items.

I am using set tw=79 but that doesn't work.

Thanks!
 
Old 02-06-2014, 08:51 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,892
Blog Entries: 28

Rep: Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347
The vim wiki has a number of articles about how to set and change the vim color scheme:

http://vim.wikia.com/wiki/Special:Se...h&ns0=1&ns14=1
 
Old 02-06-2014, 11:29 PM   #3
StevenXL
Member
 
Registered: Jan 2014
Posts: 81

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
The vim wiki has a number of articles about how to set and change the vim color scheme:

http://vim.wikia.com/wiki/Special:Se...h&ns0=1&ns14=1
Hello frankbell - thanks for your reply.

It is not vim that's the problem - it is the fact that these terminals do not support the amount of colors that gvim does.

I would rather use gvim but with vim behavior to get the color features.
 
Old 02-07-2014, 08:19 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,892
Blog Entries: 28

Rep: Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347
Do you mean the physical terminal or the virtual one. Either way, if the terminal won't support the colors, I don't think you can make them happen in the software.

I've not used gvim. I keep using vim, hoping that one day I'll get good at it. At this point, I'm barely adequate.
 
Old 02-07-2014, 08:33 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Gvim supports all the options and commands that are supported by Vim, so you can set it up exactly like you would with Vim. In fact, if no .gvimrc exists it even loads the .vimrc instead.
 
1 members found this post helpful.
Old 02-08-2014, 06:38 PM   #6
StevenXL
Member
 
Registered: Jan 2014
Posts: 81

Original Poster
Rep: Reputation: Disabled
@TobiSGD

Thanks - you are completely right.

I am not sure why it wasn't loading up that file (or maybe the setting wasn't correct - I don't know; it simply wasn't working as I expected).

gvim does indeed perform like vim now, and I can use the color scheme I wanted!

Thanks.
 
Old 02-08-2014, 07:55 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,892
Blog Entries: 28

Rep: Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347
Now that's a nice bit hint.
 
  


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
How to get gvim color in vim? cola Slackware 1 03-26-2010 04:19 AM
Vi/Vim/gVim vs Kate Diego Torquemada Linux - Newbie 7 04-01-2009 08:19 AM
gvim or vim? Abomb Programming 28 12-14-2006 11:27 PM
vim or gvim raees Linux - General 7 03-17-2004 05:02 PM
vim / gvim Shak Linux - Software 4 04-03-2003 09:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:55 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