LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   VIM doesn't complete filenames on pressing Tab (https://www.linuxquestions.org/questions/linux-software-2/vim-doesn%27t-complete-filenames-on-pressing-tab-242134/)

The Scientist 10-13-2004 08:55 AM

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

Mega Man X 10-13-2004 09:52 AM

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

Good luck!

The Scientist 10-13-2004 10:15 AM

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 :o

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

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


All times are GMT -5. The time now is 04:18 AM.