eclim - Vim exec command with input() and nested command -
i create vim command waiting input execute ':cw' automatically after first command.
here try:
noremap <c-p> :exec ":projectgrep /".input('search: ')"/ src/**"<cr>:cw but ':cw' not execute after command, complete input().
add following snippet vimrc make vim open quickfix/location window when there valid errors/locations:
augroup qf autocmd! autocmd quickfixcmdpost [^l]* cwindow autocmd quickfixcmdpost l* lwindow augroup end that snippet addresses believe underlying issue (having quickfix window open automatically after search command), though, not actual question.
anyway, cwindow should last command in function called :projectgrep command; not @ mapping level.
Comments
Post a Comment