Commit graph

7 commits

Author SHA1 Message Date
Bruno BELANYI 2b96d8870e [ADD][VIM] Use 'textwidth' of 80 in markdown 2020-12-12 14:12:42 +01:00
Bruno BELANYI dd1aa89186 [FIX][VIM] Reduce indentation for pandoc files 2020-12-12 14:12:42 +01:00
Bruno BELANYI 94ed7a9e9e [FIX][VIM] Unlet ftplugin variables without errors 2020-12-12 14:12:42 +01:00
Bruno BELANYI d9eab5526f [UPDATE][VIM] Factorise b:undo_ftplugin
Instead of re-writing the same condition each time, I put the function
in an autoload plugin instead (which is going to be loaded just about
every time I start writing code, but that's neither here nor there) to
stop repeating myself.
2019-10-25 14:27:21 +02:00
Bruno BELANYI 36faab278e [FIX][VIM] Set b:undo_ftplugin if not set
I hit the problem when loading a fugitive window, but this should be
done for all filetype plug-ins before trying to append to the variable.
2019-10-25 14:15:56 +02:00
Bruno BELANYI 0473705335 [UPDATE][VIM] Use b:undo_ftplugin
You're supposed to undo the changes that you made to a buffer's
variables when doing filetype-related settings. The variable
'b:undo_ftplugin' contains the commands necessary to revert any changes
that you have made to accomodate this filetype.

I removed the mappings for left and right in a quickfix windows because
I don't use them, and the 'qf' plug-in already maps those (meaning I had
an error when I tried to unmap them after qf already did so).
2019-10-19 05:46:29 +02:00
Bruno BELANYI 6dd31874c8 [UPDATE][VIM] Move filetype files to 'after/' 2019-10-19 05:46:29 +02:00
Renamed from vim/.vim/ftplugin/pandoc.vim (Browse further)