Skip to content
New issue

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

when executing vimpipe the cursor in current buffer jumps to first line #9

Open
ghost opened this issue Mar 23, 2016 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Mar 23, 2016

workaround

nnoremap <leader>r :call <SID>pipe()<CR>

" vim-pipe and jump back to where i was
function! <SID>pipe()
    let line = line(".")
    let column = col(".")

    %call VimPipe()

    call cursor(line, column)
endfunc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants