Tuesday, May 24, 2016

Re: "Executing" vim files

On Tuesday, 24 May, 2016 at 09:32:32 BST, Michał Urban wrote:
>I've got file with extension vim, which is vim script (concretely this one: javascript.vim by Tye Zdrojewski). How to "execute" it? In vimrc?

You probably want to source it:
:source javascript.vim

If you want it to always be sourced for javascript files, put it in ~/.vim/after/ftplugin/javascript/

If it's really meant to be "executed", you'll want this ("man vim | less +/scriptin"):
vim -s javascript.vim

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: