LinuxQuestions.org
Visit Jeremy's Blog.
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, 03:15 AM   #1
mikudo
Member
 
Registered: Aug 2018
Posts: 77

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, 03:45 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,602

Rep: Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361
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, 07:06 AM   #3
mikudo
Member
 
Registered: Aug 2018
Posts: 77

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, 09:35 AM   #4
lougavulin
Member
 
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 262

Rep: Reputation: 94
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, 09:47 AM   #5
mikudo
Member
 
Registered: Aug 2018
Posts: 77

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


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

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

All times are GMT -5. The time now is 06:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration