I’m looking for a shortcut in vim that would launch chrome/chromium and have it always open the same local file ?
ps: on ubuntu
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Put the following in your
~/.vimrc:The ! command tells vim to run the following command with the shell. In this case, replace
<F8>by your preferred keystroke andchromeby the command which opens chrome/chromium from the shell on your machine (probablygoogle-chrome). Obviously, you also have to change the/path/to/fileto the file you want chrome to open when it starts.