diff --git a/doc/vim-tmux-runner.txt b/doc/vim-tmux-runner.txt index 82e66a3..442ffa5 100644 --- a/doc/vim-tmux-runner.txt +++ b/doc/vim-tmux-runner.txt @@ -229,14 +229,14 @@ populated based on the current file. There are default configurations provided for ruby, javascript (via node), python, and sh. You can override and or add by defining a dictionary in your Vimrc, e.g.: - let g:vtr_filteype_runner_overrides = { + let g:vtr_filetype_runner_overrides = { \ 'ruby': 'ruby -w {file}', \ 'haskell': 'runhaskell {file}' \ } The key for each entry should be the fileype, and the value is a string for which the {file} portion will be replaced by the current file name when run. -Any settings in your g:vtr_filteype_runner_overrides will take precedence +Any settings in your g:vtr_filetype_runner_overrides will take precedence over the default values. This command expects a runner to be attached. Add ! to force a runner. diff --git a/plugin/vim-tmux-runner.vim b/plugin/vim-tmux-runner.vim index 8e3abd2..79100bf 100644 --- a/plugin/vim-tmux-runner.vim +++ b/plugin/vim-tmux-runner.vim @@ -424,8 +424,8 @@ function! s:CurrentFiletypeRunners() \ 'python': 'python {file}', \ 'sh': 'sh {file}' \ } - if exists("g:vtr_filteype_runner_overrides") - return extend(copy(default_runners), g:vtr_filteype_runner_overrides) + if exists("g:vtr_filetype_runner_overrides") + return extend(copy(default_runners), g:vtr_filetype_runner_overrides) else return default_runners endif