LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 04-22-2009, 11:29 AM   #1
bstern
LQ Newbie
 
Registered: Apr 2009
Posts: 4
Thanked: 0
vim: K (iskeyword) doesn't work in Slackware 12.2


[Log in to get rid of this advertisement]
I upgraded from 12.1 to 12.2 on one system, and have not yet on another. On the system where I upgraded to 12.2, pressing K in vim while the cursor is on a function name in C source code no longer works properly.

On the 12.1 system, it grabs the function name properly and presents the man page. On a 12.2 system, it grabs from the start of the keyword to the end of line and therefore doesn't give me the right man page.

Example:

Pressing 'K' while the cursor is under the atol in the line

h = atol(argv[1]);

on 12.1 gives me the man page for atol.

On 12.2, man tells me:

No manual entry for atol(argv[1]);

How do I fix this?
bstern is offline  
Tag This Post , ,
Reply With Quote
Old 04-22-2009, 12:12 PM   #2
druuna
Senior Member
 
Registered: Sep 2003
Location: netherlands
Distribution: lfs
Posts: 3,269
Thanked: 78
Hi,

The problem is not the K in vi, it works fine and tells you: No manual entry for atol(argv[1]);
It seems that the manpage for atol is not installed, did you install everything that was installed on your previous version (12.1)?

The manpage package should be installed. Check your own medium first before using the link I provided.

Hope this helps.
druuna is offline     Reply With Quote
Old 04-22-2009, 02:39 PM   #3
bstern
LQ Newbie
 
Registered: Apr 2009
Posts: 4
Thanked: 0

Original Poster
Quote:
Originally Posted by druuna View Post
Hi,

The problem is not the K in vi, it works fine and tells you: No manual entry for atol(argv[1]);
It seems that the manpage for atol is not installed, did you install everything that was installed on your previous version (12.1)?
Yes, I did install the new version of the manpages. The problem is not that man can't find the page for atol. "man atol" works on the command line.

The problem is that when I type K, vim is trying to get the manpage for "atol(argv[1]);" - which certainly doesn't exist, and shouldn't.

Does anyone know what changed with the Slackware package for vim between 12.1 and 12.2 that made the "inkeyword" function break?

Thanks!
bstern is offline     Reply With Quote
Old 06-29-2009, 02:28 PM   #4
bstern
LQ Newbie
 
Registered: Apr 2009
Posts: 4
Thanked: 0

Original Poster
bump

Does pressing K in vim over a C function name work for anyone in Slackware 12.2?

For example, if you move the cursor over the word "printf" in the attachment, does anyone who is running Slackware 12.2 actually get a man page for printf?

This worked in Slackware 12.1.

Thanks!
Attached Files
File Type: txt argc.c.txt (219 Bytes, 3 views)
bstern is offline     Reply With Quote
Old 06-29-2009, 03:37 PM   #5
sinic
LQ Newbie
 
Registered: Jun 2009
Posts: 1
Thanked: 1
This was a bug in vim that has been fixed with patch 7.2.026 and should work in Slackware 13.
sinic is offline     Reply With Quote
Thanked by:
Old 06-29-2009, 05:13 PM   #6
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware 12 and current
Posts: 1,160
Thanked: 112
This is fixed in Slackware current so yes it will work in Slackware 13.
bgeddy is offline     Reply With Quote
Thanked by:
Old 06-29-2009, 08:26 PM   #7
bstern
LQ Newbie
 
Registered: Apr 2009
Posts: 4
Thanked: 0

Original Poster
Quote:
Originally Posted by bgeddy View Post
This is fixed in Slackware current so yes it will work in Slackware 13.
Great news! Thanks for letting me know.

Will the fix be be backported to Slackware 12.2, or do I need to rebuild vim myself?
bstern is offline     Reply With Quote
Old 06-29-2009, 08:46 PM   #8
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware 12 and current
Posts: 1,160
Thanked: 112
Quote:
Will the fix be be backported to Slackware 12.2, or do I need to rebuild vim myself?
Well I can't speak for the Slackware team but I think you may be better building it yourself on 12.2. You could just get the sources and Slackbuild from the current version available here and build it on Slackware 12.2 then upgradepkg the newly built package. Either that or wait for Slackware 13. Don't forget that you'll need the patches directory and contents from the sources.
bgeddy is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 05:26 PM
in VIM numberpad does not work as intended. Hewson Linux - General 2 03-26-2007 01:22 PM
Getting the NUMPAD to work with VIM xtremeclones Linux - Newbie 2 11-27-2006 10:31 AM
vim numerical keypad doesn't work noir911 Linux - General 2 08-09-2004 10:36 PM
VIM under Slackware 9.1 kittani Linux - Software 5 06-16-2004 06:02 AM


All times are GMT -5. The time now is 05:50 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration