Timeline for How do I tell vim that some file extensions are synonymous?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 5, 2018 at 10:50 | comment | added | tallamjr |
@oarfish It doesn't matter too much I think, but I prefer BufRead,BufNewFile ahead of BufEnter because in the docs (:help BufEnter ) it states: "BufEnter: .... Also executed when starting to edit a buffer, after the BufReadPost autocommands." where BufReadPost is synonymous with BufRead. In addition, I do not believe the : is required before setlocal so I also omitted that in my answer. (I might have interpreted this completely wrong, happy to hear further discussion)
|
|
S Sep 5, 2018 at 10:09 | history | suggested | Herb | CC BY-SA 4.0 |
removed unnecessary note
|
Sep 5, 2018 at 10:02 | comment | added | oarfish |
This seems to be basically identical to @edi9999's answer. Can you elaborate on why to use BufRead,BufNewFile instead of BufEnter ?
|
|
Sep 5, 2018 at 4:18 | review | Suggested edits | |||
S Sep 5, 2018 at 10:09 | |||||
Sep 5, 2018 at 0:15 | review | Late answers | |||
Sep 5, 2018 at 13:41 | |||||
Sep 5, 2018 at 0:00 | review | First posts | |||
Sep 5, 2018 at 4:18 | |||||
Sep 4, 2018 at 23:56 | history | answered | tallamjr | CC BY-SA 4.0 |