rickhowe / diffchar.vim

Highlight the exact differences, based on characters and words
http://www.vim.org/scripts/script.php?script_id=4932
MIT License
217 stars 10 forks source link

Installation documentation #36

Closed a2nath closed 1 year ago

a2nath commented 1 year ago

Hello, is there a step-by-step installation instructions somewhere? I did a clone inside the ~/.vim dir and renamed the new dir from diffchar.vim to diffchar

Then I added the "let g:DiffExpr = 1" at the end of the ~/.vimrc I don't see the word by word diff. And even tried hitting F7 couple of times.

rickhowe commented 1 year ago

Hi, There is no specific procedure for diffchar.vim. You should be able to install it as same as other plugins. In your case, it would be necessary to add 'set rtp+=~/.vim/diffchar.vim' in your ~/.vimrc. (no need to change dir name). Note that 'g:DiffExpr' and 'F7' are not available in recent versions.

a2nath commented 1 year ago

I resolved this issue just after posting this question, by creating the directories, ./vim/path/vendor/start and there I cloned the repo. Changed the name from diffchar.vim to diffchar directory. I'm not sure what the difference is from the solution above ^ but it works now