(Move categories to tip template) |
(Remove html character entities) |
||
Line 29: | Line 29: | ||
Putting the above line in vimrc will remove "=" from the list of valid filename chars. |
Putting the above line in vimrc will remove "=" from the list of valid filename chars. |
||
− | Thus you can easyly complete filenames using |
+ | Thus you can easyly complete filenames using <Ctrl-X> <Ctrl-F> |
==Comments== |
==Comments== |
Revision as of 08:38, 28 September 2008
created January 10, 2002 · complexity basic · author Anon · version 5.7
In shell scripts, you often define environment variables for different directory names, for example:
JAVA_HOME=/opt/java/jdk1.4 PATH=/usr/local/bin:/bin....
Normally typing Ctrl-X Ctrl-F is used to complete FileName under cursor. But this does not work if used on lines given above.
This is because Vim treats "=" sign as a valid filename character.
Since the actual possibility of "=" being in any filename is very less, this char can be removed from the list of valid filename char.
set isfname-==
Putting the above line in vimrc will remove "=" from the list of valid filename chars.
Thus you can easyly complete filenames using <Ctrl-X> <Ctrl-F>
Comments
For source code editors of Progress, based on this tip, I used
set isfname-={,}
and now my include files are pulled in automatically with gf when they are in the format {myinclude.i}