Tag: vim

  • Windows vim-plug error

    When trying to port my macOS .vimrc to Windows and attempting to set up vim-plug, I ran into the following error In searching, I found this issue on vim-plug’s GitHub repo: Error when I try to install plugins on Windows. The comment on setting shellslash made me look in my own .vimrc: Commenting that out…

  • Error detected while processing Users tpowell vim plugins…

    Error detected while processing /Users/tpowell/.vim/plugins/vim-fugitive/plugin/fugitive.vim: line 471: E1208: -complete used without allowing argumentsline 472: E1208: -complete used without allowing argumentsline 476: E1208: -complete used without allowing argumentsline 479: E1208: -complete used without allowing argumentsPress ENTER or type command to continue Fixed by changing -nargs=0 instances in fugitive.vim to -nargs=? Found via https://github.com/mhinz/vim-sayonara/pull/19/commits/7e774f58c5865d9c10d40396850b35ab95af17c5

  • Using a vimscript to run through a list of substitutions with dictionary pairs

    I wanted to modify a test suite to call a method using ruby 2’s keyword arguments. There were several calls to the same initialization function that followed a pattern that made it a good candidate for a series of `%s` calls using key-value pairs in a dictionary. Interesting how vimscript uses a leading slash as…