vi renames old file .Then writes a new file with original name If you want to reuse existing inode for this follow this steps.
Step1 open vim and type :version
Step 2 type : e $/HOME/.vimrc
and save
set backupcopy=yes,breakhardlink
Now ,inode value is same both i,e 67785966 before editing abhay and after writing contents .
we can set
Step1 open vim and type :version
Step 2 type : e $/HOME/.vimrc
and save
set backupcopy=yes,breakhardlink
Now ,inode value is same both i,e 67785966 before editing abhay and after writing contents .
we can set
0 on: "Why Inode number changes when we edit vi editor ?"