We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to use fzf as a replacement for FSwitch for switching between header and source files
For that, I have the following line in my .vimrc
.vimrc
nnoremap :call fzf#vim#files('.', {'options':['--query', expand("%:r").' h$ | hpp$ | cpp$ | c$']})
However, sourcing this gives me the following error
E492: Not an editor command: hpp$ | cpp$ | c$']})<CR>
It seems like the pipe is causing an issue. How do I correctly pass the vertical bar to the query?
Running the command directly in vim (without keybinding) works though
:call fzf#vim#files('.', {'options':['--query', expand("%:r").' h$ | hpp$ | cpp$ | c$']})<CR>
The text was updated successfully, but these errors were encountered:
See :help map-bar. I would just define a function that calls fzf#vim#files and call it instead to avoid the "escaping" issue.
:help map-bar
fzf#vim#files
Sorry, something went wrong.
No branches or pull requests
I am trying to use fzf as a replacement for FSwitch for switching between header and source files
For that, I have the following line in my
.vimrc
nnoremap :call fzf#vim#files('.', {'options':['--query', expand("%:r").' h$ | hpp$ | cpp$ | c$']})
However, sourcing this gives me the following error
It seems like the pipe is causing an issue. How do I correctly pass the vertical bar to the query?
Running the command directly in vim (without keybinding) works though
The text was updated successfully, but these errors were encountered: