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

cmd/govim: fix ftplugin approach #182

Merged
merged 1 commit into from
Apr 27, 2019
Merged

Conversation

myitcv
Copy link
Member

@myitcv myitcv commented Apr 26, 2019

Having Vim callback into govim in order to simply run a bunch of
mappings is overkill. Not least because the user would end up having to
"translate" the Go calls to VimScript in order to override the mappings
in their own ~/.vim/after/ftplugin/go.vim file.

So, simplify everything by just using VimScript here.

Fixes #181

@myitcv myitcv force-pushed the cmd_govim_fix_ftplugin_mess branch 2 times, most recently from eb096ff to 3e43000 Compare April 27, 2019 19:19
Having Vim callback into govim in order to simply run a bunch of
mappings is overkill. Not least because the user would end up having to
"translate" the Go calls to VimScript in order to override the mappings
in their own ~/.vim/after/ftplugin/go.vim file.

So, simplify everything by just using VimScript here.

Fixes #181
@myitcv myitcv force-pushed the cmd_govim_fix_ftplugin_mess branch from 3e43000 to 463e884 Compare April 27, 2019 19:30
@myitcv myitcv changed the title [WIP] cmd/govim: fix ftplugin approach cmd/govim: fix ftplugin approach Apr 27, 2019
@myitcv myitcv merged commit 161c277 into master Apr 27, 2019
@myitcv myitcv deleted the cmd_govim_fix_ftplugin_mess branch April 27, 2019 19:51
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

Successfully merging this pull request may close these issues.

cmd/govim: add tests for default mappings
1 participant