LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 04-22-2009, 10:29 AM   #1
bstern
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Rep: Reputation: 0
vim: K (iskeyword) doesn't work in Slackware 12.2


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?
 
Old 04-22-2009, 11:12 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380
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.
 
Old 04-22-2009, 01:39 PM   #3
bstern
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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!
 
Old 06-29-2009, 01:28 PM   #4
bstern
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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, 4 views)
 
Old 06-29-2009, 02:37 PM   #5
sinic
LQ Newbie
 
Registered: Jun 2009
Posts: 9

Rep: Reputation: 4
This was a bug in vim that has been fixed with patch 7.2.026 and should work in Slackware 13.
 
Old 06-29-2009, 04:13 PM   #6
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
This is fixed in Slackware current so yes it will work in Slackware 13.
 
Old 06-29-2009, 07:26 PM   #7
bstern
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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?
 
Old 06-29-2009, 07:46 PM   #8
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
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.
 
  


Reply

Tags
slackware, vim


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


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