Skip to content

Commit

Permalink
make variable names better for vimrc overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
throughnothing committed Sep 29, 2011
1 parent 6e3585a commit d14addf
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions plugin/script-runner.vim
Expand Up @@ -28,15 +28,9 @@ endf
fu! Run(cmd)
let s:real_cmd = a:cmd

<<<<<<< HEAD
if(exists("g:script_runner_cmds") && has_key(g:script_runner_cmds, a:cmd))
if(exists("g:script_runner_".a:cmd))
" Use the users custom setting
"let s:real_cmd = g:script_runner_".a:cmd
=======
if(exists("g:ft_".a:cmd))
" Use the users custom setting
execute "let s:real_cmd = g:ft_".a:cmd
>>>>>>> allow user overrides with g:ft_FILETYPE vars
execute "let s:real_cmd = g:script_runner_".a:cmd
elseif(has_key(s:ft_cmd, a:cmd))
" Use our default, if there is one
let s:real_cmd = s:ft_cmd[a:cmd]
Expand Down

0 comments on commit d14addf

Please sign in to comment.