vim-office icon indicating copy to clipboard operation
vim-office copied to clipboard

It works with `:e file.pdf` but not with `vim file.pdf`

Open petRUShka opened this issue 5 years ago • 2 comments

Thanks for the plugin.

It works as expected from within vim/neovim: :e file.pdf converts pdf to text and opens it in vim.

But execution from command line doesn't work well. vim file.pdf opens it as is (so no conversion at all).

petRUShka avatar Apr 23 '20 15:04 petRUShka

Strange. Works for me with the following vimrc and Vim version 8.0.1568

set nocompatible
language messages en_US  " To avoid scrambled non english letters.
let &rtp = '~/.vim/plugged/vim-office' . ',' . &rtp
filetype plugin indent on
syntax on

Could you distill a minimal example?

Konfekt avatar Apr 23 '20 18:04 Konfekt

It works well with minimal example. I used this one:

set nocompatible
set runtimepath^=~/.vim runtimepath+=~/.vim/after
call plug#begin('~/.vim/plugged')
Plug 'Konfekt/vim-office'
call plug#end()

filetype plugin indent on
syntax enable

I'll try to find out which plugin or setting conflict with vim-office.

petRUShka avatar Apr 24 '20 13:04 petRUShka