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

CSVTabularize makes the original .csv file ignore g:csv_highlight_column #70

Closed
hyiltiz opened this issue Oct 22, 2015 · 6 comments
Closed

Comments

@hyiltiz
Copy link

hyiltiz commented Oct 22, 2015

I loved the highlight column feature when it follows cursor. However, in a .csv file, if I do :CSVTabularize then ^WK back to the original window where the .csv file buffer is still open, the .csv file no longer highlights the column following cursor, but the highlight simply is left at the column when the cursor was when :CSVTabularize was run. A check at the value :echo g:csv_highlight_column shows the value as y even at this (when highlight no longer follows cursor) state.

@chrisbra
Copy link
Owner

Hi Hörmet!

On Do, 22 Okt 2015, Hörmet Yiltiz wrote:

I loved the highlight column feature when it follows cursor. However, in a .csv file, if I do :CSVTabularize then ^WK back to the original window where the .csv file buffer is still open, the .csv file no longer highlights the column following cursor, but the highlight simply is left at the column when the cursor was when :CSVTabularize was run. A check at the value :echo g:csv_highlight_column shows the value as y even at this (when highlight no longer follows cursor) state.

Hm, I can't seem to reproduce this. Can you tell me the exact steps to
show that behaviour?

Best,

Christian

Ein Buch ist ein Spiegel. Wenn ein Affe hineinguckt, so kann freilich
kein Apostel herausschauen.
-- Georg Christoph Lichtenberg

@chrisbra
Copy link
Owner

Does it help to call :CSVInitCSV ?

@hyiltiz
Copy link
Author

hyiltiz commented Oct 23, 2015

Yes, :e will set it back. I will give u exact steps later.
On Fri, Oct 23, 2015 at 5:33 AM Christian Brabandt notifications@github.com
wrote:

Does it help to call :CSVInitCSV ?


Reply to this email directly or view it on GitHub
#70 (comment).

from Google Inbox

@hyiltiz
Copy link
Author

hyiltiz commented Oct 23, 2015

Here are the steps to reproduce:

  1. vim newfile.csv
  2. In vim, type ia,b,c<ENTER>1,2,3:w
  3. Now we have the a 2x3 table;
  4. Move cursor around: hhllkhjl
  5. Run this: :CSVTabularize
  6. Now move back to the original window: ^ww
  7. Move the cursor around: hhllkhjl
  8. You will find that the highlighted row does not change following the column the cursor is on
  9. :e
  10. You will find that the highlighted row now does change following the column the cursor is on
  11. :CSVInitCSV
  12. Now the highlight is off, and no column is highlighted.
  13. :e
  14. Highlight is back to normal again. You will find that the highlighted row now does change following the column the cursor is on

I am using vim-plug and just updated my plugins, so am sure i am using the latest master version as of now.

@chrisbra
Copy link
Owner

Ah I misunderstood. I thought you were talking about :ArrangeCol command. I think I fixed it now. Please check.

@hyiltiz
Copy link
Author

hyiltiz commented Oct 25, 2015

I did the same test as I did before (see steps above) after updating to your latest version. And guess what, you fixed it! Thanks!

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

No branches or pull requests

2 participants