Skip to content

Instantly share code, notes, and snippets.

View calisfed's full-sized avatar

Ninh Cuong calisfed

View GitHub Profile
-- Summary: get multiple file contents into one and write it back
-- Config: configuration should be done directly inside source code. This one is very niche so I won't make it into a plugin
-- Default it will find all file (exclude hidden files, take a look at line 47) in the current directory
-- If needed specific file pattern then you can pass pattern into the read() function like: require'onefiler'.read("/*.zig")
-- Change M.filename_deco to suit your file type, I recommend make it a comment line
-- It will write to any file in the onefile if match, so be careful before write
-- Usage:
-- Keymap: you can assign keymap for it