I tried to clear my .vimrc, remove all plugins, update Vim, try different shells, etc., but I absolutely can not get "gx" to work on the given URL. I used it before, and it worked fine, it even uses to open my finder directory if I am 'gx'ed on an empty line. I tried to run "gx" at numerous URLs, above them, below them, adding "/" at the end, etc. Still, no luck. I'm just out of my mind trying to figure out why it no longer works when it uses. Sometimes it opens the URL in an empty buffer with a buffer name equal to the URL, and in other cases nothing happens. I would appreciate anyone who really knew what the hell was going on with this stupid thing.
I am in the latest version of OS X and have the latest version of Vim.
UPDATE
I found the answer to this question, but still not quite sure why this worked, and my original approach did not.
Original approach
I installed iTerm2 and was forced to install Preferences> Profiles> General> Command> Command> /usr/local/bin/zsh -l . Despite the fact that I ran $ chsh -s /usr/local/bin/zsh and added /usr/local/bin/zsh to /etc/shells , I could not get> Profiles> General> Command Prompt> Login (radio button ) for work.
I would either receive an error message in the terminal, or the window would just start and disappear in iTerm. However, running my profile command /usr/local/bin/zsh -l in my mind should have made the shell work in login mode (the same mode as mine by default), but this caused serious problems in vim, where I could not get any shell command or function that relied on shell commands to work (for example :!ls , gx ).
ANSWER
In addition, I finally managed to get everything that works fine after running chsh -s /bin/bash (for example, back to its default). Suddenly, I managed to start both terminals and iTerm with a switch for logging in, and all my problems disappeared. It should be noted that I tried chsh -s /usr/local/bin/zsh and received an error that I did not get the first time - something about a non-standard login shell.
This was not good enough, because I really wanted to use my zsh (and bash) Homebrew shells, as they are more relevant. Finally, I found the answer, I ran sudo dscl . change /users/$USER UserShell /bin/bash /opt/local/bin/zsh sudo dscl . change /users/$USER UserShell /bin/bash /opt/local/bin/zsh , and then I was able to leave the "Login" switch on and actually use -zsh for the first time without any problems.
NOW MORE QUESTIONS
Now my questions are: 1.) Why doesn't my original profile command /usr/local/bin/zsh -l work as if it were my default login shell? Are they not the same (for example, a login shell is a login shell)? 2.) If I update /etc/shells with /usr/local/bin/zsh , why should I get a "non-standard shell error"? 3.) I read the MAN page on dscl , but don’t understand how it really changed my login shell when chsh -s /new/shell/path didn’t work? 4.) Does ANYBODY really know what is going on here ?!
If you are a moderator, please let me know if I have to break down these issues into different posts, but this is kind of a big problem, and I can’t believe that I am the only one who had this problem, because I couldn’t find ANY Q and how it explained in detail what is happening. Thank you in advance for your help!