1995eaton / chromium-vim

Vim bindings for Google Chrome.
https://chrome.google.com/webstore/detail/cvim/ihlenndgcmojhcghmfjfneahoeklbjjh
MIT License
2.25k stars 326 forks source link

Moving .vimrc path settings out of the file #661

Open sheoak opened 5 years ago

sheoak commented 5 years ago

I understand that chrome's API doesn't allow to read $HOME or ~/ in file path. So you have to add your username in the configuration:

let configpath = '/home/myusername/.cvimrc'

This makes it an issue when saving your dotfiles on a public repository, as the config file becomes dependant on the user name. A temporary fix (until chrome allows access to $HOME?) would be maybe to add a new option with the file path, out of .cvimrc? This would also removes the need for "localconfig" (if a file is found it default to set localconfig).

I find it odd to add the file path or the local setting in the file itself and I was confused when setting cvim the first time.

andremeireles commented 4 years ago

Did you tried the homedirectory option? I haven't tested it, but it's on the list.