Is file locking dependent on the editor or we can control it via the oplocks option? here's the scenario: I usually use vi from the console. However, some of my colleagues might work on the same file from the windows machine using notepad, Jedit, dreamweaver etc. What is the best way to lock files?