Vim ctrlp plug in loading all files in my computer instead of current directory
macos, macvim, vim
Solution
I went to the GitHub page for ctrlp to file an issue and came across this issue. The suggested fix for an issue was to turn off starting in the current directory as a default behavior, so I just explicitly added the default to `~/.vimrc`, which fixed it:
`let g:ctrlp_working_path_mode = 0`
EDIT
While adding that line to my `~/.vimrc` did indeed fix the problem, it didn't address the root cause of this issue. The creator of the `ctrlp` suggested that I had created a `git` repository in my home folder (which `ctrlp` was looking in), which I somehow had. So another, more root fix for this issue was to just remove the `.git` directory in my home folder:
`$ rm -r ~/.git`
Problem
I'm using MacVim with the ctrlp plug in for a file finder. It's supposed to load files in just the current directory to the file buffer. For example, I used to be able to `cd` into a directory, and then type `mvim` at the command line. That would load all the files in the current directory and only that directory, which was awesome for, say, a Rails project. Then my file finds would only search in that directory. Recently, though, when I type `mvim` in a certain directory, the vim file buffer is all the files on my computer, rather than in the current directory, so finding the exact `index.html.haml` I need is impossible. The weird thing is that when I say `mvim .`, it only tells me the files and folders in the current directory, which I would expect. And when I type `:pwd`, it tells me that the path I'm in is the current directory (a Rails project). But when I type `,t` to find a file, it's all the files on my computer. Here is a screenshot. I've `cd`ed into a Rails project and have typed `,t` to bring up the file navigator using the `ctrlp` plugin, and I typed `config.rb` which should only bring up that directory's `config.rb` file, but instead, it's all the `config.rb`'s on my system!