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

Setting tabSize #3

Closed
vesan opened this issue Dec 1, 2020 · 4 comments
Closed

Setting tabSize #3

vesan opened this issue Dec 1, 2020 · 4 comments

Comments

@vesan
Copy link

vesan commented Dec 1, 2020

I would love to be able to set the tabSize option: https://codemirror.net/doc/manual.html#option_tabSize

Do you see setting that being a feature of this plugin? Or enable to set other CodeMirror configuration options also?

@esm7
Copy link
Owner

esm7 commented Dec 1, 2020 via email

@vesan
Copy link
Author

vesan commented Dec 1, 2020

So it would be something like this next to the clipboard option definition?

CodeMirror.Vim.defineOption('tabstop', 4, 'number', [], (value, cm) => {
	if (value) {
		cmEditor.setOption('tabSize', value);
		console.log('Vim is now set to use tabSize ' + value);
	}
});

@esm7
Copy link
Owner

esm7 commented Dec 2, 2020 via email

@esm7
Copy link
Owner

esm7 commented Dec 20, 2020

I incorporated this into the plugin in version 0.2.1 😎

@esm7 esm7 closed this as completed Dec 20, 2020
esm7 pushed a commit that referenced this issue Apr 10, 2023
Clean-up: use tabs instead of soft tabs
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