LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-12-2018, 02:15 AM   #1
mikudo
Member
 
Registered: Aug 2018
Posts: 82

Rep: Reputation: Disabled
vim tab completion


Why does vim not tab complete at the command line?

I make a script and

#vim scri

no tab completion.

cat script tab completes.

Whats up with this?

In debian.
 
Old 09-12-2018, 02:45 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
tab completion is made by the shell, not by vim or cat. we need to know more about that environment to be able to understand that situation.
Can you please give us more details. http://catb.org/~esr/faqs/smart-ques...html#beprecise
 
Old 09-12-2018, 06:06 AM   #3
mikudo
Member
 
Registered: Aug 2018
Posts: 82

Original Poster
Rep: Reputation: Disabled
Fair question, in this case I dont even know what to look for.

I know there are paths and environment variables. I'm running as root, this is a bash shell that is as far as I know normal.

It is not an urgent question, I do notice that directories autocomplete but not files. Another debian server I work on autocompletes fine.

Any further understanding of the autocomplete mechanic would be helpful, links etc. I found it difficult to search on this because most of the articles were related to tabs inside of vim etc.
 
Old 09-12-2018, 08:35 AM   #4
lougavulin
Member
 
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 279

Rep: Reputation: 100Reputation: 100
For vim completion, everything should be in ~/.vimrc.
So if on one server for one user that works, and that doesn't on another, look at the differences between the ~/.vimrc file from each server - user.
 
Old 09-12-2018, 08:47 AM   #5
mikudo
Member
 
Registered: Aug 2018
Posts: 82

Original Poster
Rep: Reputation: Disabled
I dont have a .vimrc, I have /etc/vim/vimrc and it doesnt mention autocomplete, grep of 'complete' in the file does nothing.
 
  


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
Argument tab completion KaosX Programming 1 04-08-2011 04:50 PM
no tab completion maddocks AIX 2 12-27-2007 01:10 PM
Tab-completion kzr_merchant Programming 2 12-17-2007 04:00 PM
TAB Auto Completion rsmccain Linux - Software 6 11-20-2007 09:47 PM
Tab completion with sudo extrasolar Slackware 8 08-22-2006 02:46 PM

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

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