sha5010 / vim.xlam

Vim experience in Excel: An add-in that brings Vim’s key bindings to Excel, enhancing navigation and efficiency.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom config help

zhengye96 opened this issue · comments

Dear author, I have placed the _vimxlamrc file within the same directory with vim.xlam. After relaunch excel, nothing has changed.

Hello,

Same thing for me, I tried 2 times but nothing changes. So I changed the shortcuts directly in the command module of visual basics Is it still in development? the addin is incredible Honesty, but suffers from repeated bugs.

Thanks for the pointer Vincent. Yeah this is really speeding up my work flow.

@zhengye96 @vincentroue

Thank you for using vim.xlam and contacting me.
Sorry for the delay in confirming.

Can you please share the details of the config? I would like to identify the cause of the issue.

This may not be the cause of this issue, but I think the Dir() function does not handle some Unicode characters correctly. (Same for Open statements?).

英語では無理なので日本語で失礼いたします。
Windows ローカルユーザー"VincentRoué"を作成し、そのユーザーでExcelを起動しました。
すると Dir(ThisWorkbook.Path & "\_vimxlamrc" ) が vbNullStringを返し、_vimxlamrcを読み込みませんでした。
(Windows 10 64bit、Office 2007 32bit日本語版でテスト)
Dir関数が「é」(アクセント記号?)を認識しないようです。
Dir()の替わりにFileSystemObjectのFileExistsメソッドを使うか、WindowsAPIのPathFileExists関数を使うのはいかがでしょうか。

I created a Windows local user "Vincent Roué" and started Excel as that user.
Then Dir(ThisWorkbook.Path & "\_vimxlamrc" ) returned vbNullString and did not load _vimxlamrc.
(Tested on Windows 10 64bit, Office 2007 32bit Japanese version)
It seems like the Dir function doesn't recognize the "é" (accent mark?).
Instead of Dir(), why not use FileSystemObject's FileExists method or Windows API's PathFileExists function?

Reply conversation sending to Sha

Dear Sha,
 
Sorry for the late reply. I have been traveling and didn't get a chance to reply until now. I can't upload the file directly here, please let me know if you need further reference. I can direct message you the files if needed. The errors might be due to my limited programming knowledge. After further experience, I have realized that there are a few sections that are a bit buggy.
 

  1. When I am in visual line mode and go up or down using and within a predefined table, sometimes all the information in the workbook wiggles during the line change. (The behavior seems like the work sheet moved to the left, then snapped back to the original area where the selected cell is. Though it is not functionally breaking, it is a bit distracting from time to time )
     
  2. I also have issues when trying to unhide columns. (After highlighting the previous and after column and press the unhide command , there is nothing happened)
     

 
Suggestions:
 
The / and ? functions work by default. However, users need to disable / defult behavior. This way, it won't conflict with the script. (Perhaps include this configuration change in the Readme, so that users can configure it right away after installation.)
 
Month to month, I work on a table that requires cross-referencing between columns and rows, inputting values at the intersections of cells. I don't know how difficult this would be to implement, but a special find feature to get me directly to the intersections of cells might significantly increase my productivity. ( Currently, I only use </> to first get to the column, then <:> to get to the correct row.)
 
From my limited knowledge, I am also aware that Vim has the ability to record key stroke sequences. If there is such a feature that allows users to record key stroke sequences, it might make it much easier to set up tables or complete tedious tasks.
 
From a visual perspective, I don't know if it is possible to have relative column and row to be displayed. (It is not a must have requirement.)

@sdys-box
検証までしていただいてありがとうございます。なるほど、 Dir() だとうまく読み込めない場合があるんですね。考えていませんでした。

ご提案いただいた方法で修正を試みたいと思います。ただ最近なかなか時間が取れず、少し遅れてしまうかもしれません。ご不便をおかけします。

Thank you for verifying it. I see, there are cases where Dir() doesn’t obtain the path properly. I hadn’t considered that.

I will try to fix it using the method you suggested. However, I haven’t had much time lately, so it might take a little longer. I apologize for any inconvenience.

@zhengye96
I will answer in order.

  1. all the information in the workbook wiggles during the line change

If my understanding of English is correct, this is by design. In visual mode, internally, when the cell selection position changes, the range of the starting cell and the selected cell is reselected. At this time, the screen may flicker for a moment. I have tried methods to reduce screen flicker, but the movement becomes sluggish each time the cell position is changed, so I gave up on implementing it.

  1. I also have issues when trying to unhide columns.

I am instructing to press Ctrl+Shift+0, but it doesn't seem to work well. If you know of a shortcut key that works, please let me know.

There is nothing, but is there anything else?

Perhaps include this configuration change in the Readme

That's right! I will try to include it in the next update. I'm not very good at English, so if you have a recommended way of writing, please let me know. (If not, that's okay)

a special find feature to get me directly to the intersections of cells

The function to warp to a specific cell is assigned to W. For example, if you want to move to cell G15, you can move by typing Wg15<Enter>.

the ability to record key stroke sequences ... that allows users to record key stroke sequences

I would like to implement this as well, but I think it is very difficult. Also, due to the nature of VBA, the undo function cannot be used, so the point that it cannot be restored if it fails is fatal.

relative column and row to be displayed

Sorry, I didn't quite understand, so could you please explain in more detail?

1つのissueに雑々と書いてよいのかどうか・・・

Dir()の件、お手すきのときでお願いします。
私はReadOnlyユーザーなので、やる気が出たらプルリクの出し方を勉強してみようかと思います。

"unhide columns"の件はSelection.EntireColumns.Hidden = falseでいかがでしょうか。
あえてCtrl+Shift+0にしているかもしれませんが。

"intersections of cells"の件
行見出しと列見出しを検索してクロスするセルに移動したいということであれば、
「列見出しを検索 → VisualMode → 行見出しを検索 → 選択範囲の右下隅へ移動」
のような操作ができればよいのかなと思います。
どこまで要望に応えるべきかは分からないですが。