LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-29-2015, 05:15 PM   #1
llywrch
LQ Newbie
 
Registered: Feb 2015
Location: Portland, Oregon
Posts: 3

Rep: Reputation: Disabled
Gvim configuratioin questions


Hi everyone! I'm using Slackware 14.1 & have encountered a couple of issues with gvim that I haven't seen before on other systems.

1. When I open it from an xterm in KDE ("gvim $MY_FILE &"), gvim pops up in full screen mode, & I have to click on the widget to reduce it to a reasonable size. (Hmm. Maybe there's a flag I need to invoke at the command line?)

2. In a lot of the text I'm editing, I have extra long lines. When I add some text to one of those extra long lines, gvim decides to be "helpful" by breaking the left-most part of the line into 55-character long lines. Which means I have to go back & rejoin them.

I've spent a few hours reading thru the man page & online articles about how to customize gvim & .gvimrc, but I haven't seen anyone mention these two issues. I don't remember seeing this with gvim on other distros, so I have to wonder if they are caused by a compile flag -- & when I get to thinking that, I know I'm more likely missing something simple.

Any clues where I should look for an answer to either or both of these 2 issues?

Thanks in advance.
 
Old 03-30-2015, 12:19 PM   #2
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
Sounds like config issue. To see default settings, location of default rc files, and configure-time build arguments, do:
Code:
vim --version
and
Code:
gvim --version
in a terminal. The gvim one will require to be run in an xterm or some such like rxvt, st, etc...
I'm betting the rc files in /usr/share/vim/{vimrc,gvimrc} are the ones that will be the source for your answer(s).
The default rc files are well commented, so it shouldn't be to much effort to find your culprit.

Last edited by j_v; 03-30-2015 at 12:21 PM.
 
Old 03-30-2015, 12:24 PM   #3
mancha
Member
 
Registered: Aug 2012
Posts: 484

Rep: Reputation: Disabled
Hi.

Regarding the full-screen issue, I can't repro on Slack 14.1 + Xfce + xterm. Do you have a custom .vimrc/.gvimrc?

Regarding the line breaks, you can put set fo-=t in ~/.vimrc or ~/.gvimrc.

--mancha
 
1 members found this post helpful.
Old 03-30-2015, 07:02 PM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
For setting the size of the window when I open gvim, I have this in ~/.gvimrc
Code:
set lines=30 columns=149
http://vim.wikia.com/wiki/Maximize_o...al_window_size
 
Old 04-01-2015, 12:19 PM   #5
llywrch
LQ Newbie
 
Registered: Feb 2015
Location: Portland, Oregon
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mancha View Post
Hi.

Regarding the full-screen issue, I can't repro on Slack 14.1 + Xfce + xterm. Do you have a custom .vimrc/.gvimrc?
My setup is Slack 14.1 + KDE. It occurs when I launch from rxvt; when I launch from xterm, it doesn't happen. Interesting. (And no, I haven't created a custom .vimrc/.gvimrc. I haven't had the time to tweak my system very much due to the demands of Real Life, darn it. That's one of the reasons I went with Slack this time around.)

Quote:
Regarding the line breaks, you can put set fo-=t in ~/.vimrc or ~/.gvimrc.

--mancha
I'll investigate this & other suggestions. Thanks for the responses.
 
Old 04-01-2015, 04:59 PM   #6
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 687
Blog Entries: 1

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by llywrch View Post
My setup is Slack 14.1 + KDE. It occurs when I launch from rxvt; when I launch from xterm, it doesn't happen. Interesting.
rxvt/gvim under kde does have some strange issues.

I have a ~/.[g]vimrc and all works fine except gvim, when launched from rxvt, gvim starts up behind rxvt. Since I have gotten konsole to a somewhat usable state so I use that now when in kde.
 
  


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
Need help with GVIM reddragon3668 Linux - Newbie 3 07-07-2013 12:34 AM
LDAP server Configuratioin sunveer Red Hat 1 08-10-2012 11:11 AM
where is the gvim? ayiiq180 Linux - Software 2 12-12-2004 03:41 AM
gvim where can I get it for RH 7.3 mtint Linux - Software 1 08-16-2002 01:54 PM
Sound Card Configuratioin HoRrIdPrObLeMs Linux - Newbie 6 03-11-2002 02:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:13 PM.

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