On 2014-10-08, Doug Walseth wrote:
> Hello -
>
> I'm using the vim-table-mode plugin, and I would like to enable it
> only for certain files
>
> to enable the plugin one can put "let g:table_mode_always_active =
> 1" in .vimrc or type the command TableModeEnable
>
> I would like, if possible, to just enable it for a certain file,
> say 'foo.txt'. how would I go about that?
You could put this in your ~/.vimrc:
au BufNewFile,BufRead foo.txt TableModeEnable
You can find more examples in:
:help autocmd-patterns
:help autocommand-pattern
Regards,
Gary
--
--
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:
Post a Comment