From owner-freebsd-questions@FreeBSD.ORG Fri Sep 10 17:29:30 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5025E16A4CF for ; Fri, 10 Sep 2004 17:29:30 +0000 (GMT) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4936243D1F for ; Fri, 10 Sep 2004 17:28:24 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from orion.daedalusnetworks.priv (host5.bedc.ondsl.gr [62.103.39.229])i8AHQLnB016003; Fri, 10 Sep 2004 20:26:42 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) i8AHPSRi006966; Fri, 10 Sep 2004 20:26:23 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost)i8AHOPXs006950; Fri, 10 Sep 2004 20:24:25 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 10 Sep 2004 20:24:25 +0300 From: Giorgos Keramidas To: Daren Russell Message-ID: <20040910172425.GB6765@orion.daedalusnetworks.priv> References: <37275.24.11.146.21.1094748592.squirrel@freedombi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: freebsd-questions@freebsd.org Subject: Re: Vim on SMB share X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2004 17:29:30 -0000 On 2004-09-10 09:22, Daren Russell wrote: > Thanks for the ideas. The server side is Win2k (so not much I can do > there!), the BSD is using version 3 of the Samba client, so I'll try > downgrading it to version 2 and see how I go. > > I guess it must also be to do with the way Vim edits files, as the basic > FBSD editor (ee) seems to manage. Vim tries to create a file called .FILENAME.swp when you edit FILENAME. The leading dot is probably what breaks the way vim works on Samba shares. You can always try to make vim write its swap files in another location, i.e. in `/var/tmp' with this in your .vimrc: set dir=/var/tmp or you can disable swapfiles altogether with set noswapfile You can even play nice tricks like selectively disabling the swapfile only for files that "live" in the well-known path of your Samba shares with something similar to this in your .vimrc: if !exists("samba_swapfile_hack") let samba_swapfile_hack = 1 autocmd BufNewFile,BufRead /share/win2k/* set noswapfile endif Unless, of course, my guess is wrong and all this is nonsense :-) Giorgos