3
votes
1answer
50 views

Expand path under cursor in VIM

I often find myself needing to lookup what the exact path to a file is when programming with VIM (in insert mode, like giving an image path inside my source code), even though I know what the path ...
0
votes
2answers
44 views

Using two python paths for vim in Windows

I wanted to simply :!python % in order to run the file im using in vim, but the obvious conflict is that there's no way for me to distinguish python2 and python3 since including both to $PATH$ would ...
0
votes
2answers
240 views

Vim file name completion relative to current file

In Vim, when I am in insert mode, and I want to use file-name completion, I want the search path to be relative to the current file, not the current working directory. For instance, if in insert mode ...
0
votes
2answers
178 views

How to call certain program from any directory, from Command Prompt (Windows)

I am really sorry if this question is stupid or something, but how can I make a program (say vim editor) so that I can call it from any directory, even though it is not directly installed in that ...
2
votes
1answer
63 views

MacPorts Vim prefixes $PATH with /etc/paths

For some reason it seems that vim (installed through macports: VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Feb 25 2013 01:56:26) prefixes my $PATH variable with the /etc/paths files. Although I ...
0
votes
1answer
59 views

Macos default paths prepend my defined paths in vim

I am trying to call some shell command from vim with like :!ls command. But unfortunately there are some default PATHS that prepends PATHs defined in the original shell. Here is the echo $PATH output ...
4
votes
2answers
173 views

How do I specify custom settings for vim based on file path

More specifically, I want to disable backup and swap file creation in vim, but only when opening/editing files that are on a specific remote volume or a specific folder. So, how do I go about ...
9
votes
8answers
5k views

$PATH in Vim doesn't match Terminal

I'm using MacVim and when I don't launch it from the Terminal (mvim) its $PATH does not include what I have set in my .bash_profile. It only seems to have the default values, ...