Open oxinabox opened 4 years ago
I suspect the answer is super fiddly https://www.vim.org/scripts/script.php?script_id=754
will probably need to look at :help indentexpr
and :help indent-expression
OMG that's amazing! @sdl1 you're a hero. @tom--lee is a hero.
(@ararslan, does this fix your biggest gripe about BlueStyle?)
Plug 'tom--lee/julia-vim'
(using vim-plug) was enough to solve this problem for me 💙
I guess the relevant changes are in this file.
Seems the relevant changes are https://github.com/tom--lee/julia-vim/commit/40649c9cab3fb95ca7104f17882483ba53b74197
Happy others have found this useful! But be aware my changes were a bit of a hack-job and the fork is well behind the upstream master. That said, I have been using it for a couple of years with no trouble.
There are now options for this in the main julia-vim plugin
It would be useful if someone can workout exactly what we want to set them to and add it the section of the instructions on configuring vim.
By default if one writes the following, pressing enter after the opening
(
then the next character pressed will be where thex
is:but what the style-guide recommends is: