-
Notifications
You must be signed in to change notification settings - Fork 4
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
Indentation #4
Comments
Hi David, thought I'd get back to you on the idea of remapping , because it has been working out fine for me. My ftdetect/mumps.vim contains the following:
You'll see this is far from perfect. It doesn't account for a midline enter, i.e. a "normal" one, hence the last remapping. Also, I have no experience in Vimscript whatsoever and I was struggling with scoping. But I still thought I'd send you this in case you find it useful, also because I've just replaced the Vimscript version with a Lua one, since I'm using Neovim anyway. all the best, T. |
Thank you. I'll look at this when I get around to exploring this request. |
One possible improvement of the plugin would be to provide a Vim indentation file for MUMPS dotlevel indentation. I've tried to solve this by remapping in insert mode to a function that appends a line based on the previous one (and on what's under the cursor, ie do or quit), but didn't get it to work. Probably not even a good idea. Vim newbie here!
The text was updated successfully, but these errors were encountered: