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

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -