I want all of my files ending in .tex
to have line length 80. So whenever I open a .tex
file in vim I type :set tw=79
. What would I put in my .vimrc to automate this?
What if I wanted it to work with a specific list of filetypes, say, .md
, .txt
, and .tex
?