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 |
Try renaming the ".rcvim" file located at your home directory to something else and see if that helps.
Good luck! |
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. |