FrigoEU / psc-ide-vim

Vim plugin for psc-ide
96 stars 36 forks source link

Fix #113 + tabs to spaces #114

Closed srghma closed 6 years ago

srghma commented 6 years ago

so i basically copied logic from getType and substituted filters based on imports with only currentModule

srghma commented 6 years ago

@coot, I have fixed tabs, nice catch

My settings in vim: tabstop=2 shiftwidth=2 softtabstop=2 expandtab smarttab

coot commented 6 years ago

Do you use some plugin for indentation? The default indentexpr will not work the way you indented the code.

srghma commented 6 years ago

@coot I think editorconfig But whats the matter? Something wrong with indentation?

coot commented 6 years ago

As I mentioned, I don't want to manually indent every \ line continuation, I prefer to stay with vim's default unless it can be easily altered. I don't like the default indentation too much, but it just convenient to have indetation that just works without extra plugins (least common denominator).

srghma commented 6 years ago

Ah, I got it, \ adds 6 spaces to previous indentation and it is inconsistent with the one that I have done

before - https://asciinema.org/a/FpwjjbySPPmDMuQblLsHvVkP8

fixed this with :%s:\ \ \\:\ \ \ \ \ \ \\:g everywhere except autoload/purescript/job.vim

now - https://asciinema.org/a/qZVseux12XvUUcCHmPGot9Fhm

coot commented 6 years ago

Thanks!

coot commented 6 years ago

113 is fixed now.