VIM's Wikia documentation states that you can disable indentation for certain filestypes by inserting the line
let b:did_indent = 1
in the file ~/.vim/indent/<filetype>.vim
where <filetype>
is substituted by the filetype used.
What if I want this applied specifically to files without a suffix? What filetype does that constitute?
I have already tried using autocmd FileType let b:did_indent = 1
in my vimrc file, which doesn't work, as expected, since the blank space doesn't constitute no suffix files.
Note.
By indentation, I mean the behaviour that you get by having set autoindent
inside your vimrc. I want this disabled for text-editing; in my case, files without a suffix.
set autoindent
.autoindent
is by default off, so you must be setting it somewhereset autoindent
in my vimrc --- which I intend to keep ---; this will enable automatic indentation by default indeed. But I want to disable it for filenames without a suffix. Problem: I don't know which filetype this constitutes.