LinuxQuestions.org
Review your favorite Linux distribution.
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 10-13-2004, 08:55 AM   #1
The Scientist
LQ Newbie
 
Registered: Oct 2004
Distribution: Slackware 9.1
Posts: 2

Rep: Reputation: 0
Exclamation VIM doesn't complete filenames on pressing Tab


I'm trying to run run lex programs with vim using :! <command>. Earlier it used to complete filenames on pressing TAB, but now it just adds ^I.

For example,
:! lex pgmTAB
doesnt add "01.l" to complete the filename, even when there are no other files starting with "pgm"

I didn't have this problem a few days ago, and the TAB works fine on completing filenames in the shell.

stty shows the following output now, but it used to show much more stuff earlier:
speed 38400 baud; line = 0;
-brkint -imaxbel

Could the problem be due to this?

Another question, how do I restore the settings of vim to its defaults?

The terminal is xterm and the vim version is 6.2

Last edited by The Scientist; 10-13-2004 at 09:02 AM.
 
Old 10-13-2004, 09:52 AM   #2
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
Try renaming the ".rcvim" file located at your home directory to something else and see if that helps.

Good luck!
 
Old 10-13-2004, 10:15 AM   #3
The Scientist
LQ Newbie
 
Registered: Oct 2004
Distribution: Slackware 9.1
Posts: 2

Original Poster
Rep: Reputation: 0
Thumbs up

I think you meant the .vimrc file. I had copied vimrc_example.vim from /usr/share/vim/vim62/ when there was this problem, but forgot to remove the .vim extension while renaming

Now the file's there in the home directory and vim is working fine Thanks!

BTW, stty used to show a lot more stuff in the output, but now it shows only three or four settings... What's the reson? Just curious...
 
  


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 make a tab is 4 spaces width in vim? ICO Suse/Novell 8 03-05-2013 10:24 AM
Shells & Tab complete. sph90457 Solaris / OpenSolaris 1 05-19-2005 03:59 PM
windowmaker restarts when pressing Alt-Tab sohmc Linux - Software 0 02-23-2005 07:40 AM
tab complete Frustin AIX 4 07-19-2004 02:31 AM
Configuring (g)vim-tab with C++/Java Mega Man X Programming 2 01-28-2004 06:27 AM


All times are GMT -5. The time now is 11:18 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration