First and foremost, I'm using Arch Linux. I have a file dir/data.tex.

I execute this command in terminal (when in the dir directory)

$ vim data.tex

I get the following output:

"indent" [New File]
Press ENTER or type command to continue

Upon pressing enter, Vim opens up an empty file!

Here is what my .vimrc looks like in my home directory ~/.vimrc

n indent on
set grepprg=grep\ -nH\ $*
let g:tex_flavor = "latex"

1 Answer 1


That line:

n indent on

means "open the file called indent that is at the root of the working directory". Basically, you tell Vim to do something silly and… it does just that.

It should be:

filetype plugin indent on

Be more careful about what you copy and paste.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.