kis9a / vimsidian

Vim plugin for PKM like obsidian.md
Do What The F*ck You Want To Public License
54 stars 0 forks source link

Modify shortcuts/mappings #12

Open pascualpobil opened 1 year ago

pascualpobil commented 1 year ago

Hi, I've tried to change the default 's' escape key so that vimsidian stops calling its functions when I press something like 'sd' or 'sj'. I've modified my init.vim commenting what I thought was the mappings but nothing happened. The shortcuts kept working the same way.

I previously created a new function (daily_journal_note) to write daily notes on another path to differentiate study notes from daily ones, but i haven't been able to find anything about shortcuts on those files. I thought everything about mappings was defined in init.vim, and now I'm kind of lost. For now, I've changed the way vimsidian opens new files so that I don't lose changes on the current one.

Any guidance? Cheers.

pascualpobil commented 1 year ago

I think I found something doing some research (:verbose nmap < C-k >). Due to the < buffer > statement, the mapping is inserted in the view of the document. What I don't know yet is why I can't modify that record from init.vim. I guess it's because that local map is done just once in the view creation. What I'm gonna do now is remove all lines from init.vim and delete the mapping from each view manually.

Still, I'd appreciate some help. Cheers.