qnighy / vim-ssh-annex

Auxiliary vim syntax files for OpenSSH
8 stars 2 forks source link

Add nolinebreak setting #2

Open antofthy opened 5 years ago

antofthy commented 5 years ago

I also suggest adding... to the syntax files...

" No word wrapping on lines in this file (does not make sense)
setlocal nolinebreak

I have linebreak (line break on whitespace or word wrapping) to allow easier reading of comments and plain text files for most things. But that really does not make any sense with these files (unless you can specify line break points as part of syntax highlighting, which I don't think you can.

Gosh... Syntactic line breaks for something like JSON files (which are otherwise all on one line) would be a great feature!

qnighy commented 5 years ago

Such configurations are up to user, so I don't think it should be included in this plugin. If there's an interface for providing break hints, that would better fit in this plugin though.

antofthy commented 5 years ago

You are right.. I moved that configuration to the "ftplugin/" directory in a file of the same name. Though rather than set nolinebreak, I now enable "paste mode" for that file, made more sense for me.