Au poil ! Merci. --- Message de Xavier Mertens le 17 jun 23h58 --- > Dans ton .vimrc: > > " When editing a file, always jump to the last known cursor position. > " Don't do it when the position is invalid or when inside an event handler > " (happens when dropping a file on gvim). > autocmd BufReadPost * > \ if line("'\"") > 0 && line("'\"") <= line("$") | > \ exe "normal g`\"" | > \ endif > augroup END > > Xavier > -- > "Research is what I'm doing when I don't know what I'm doing." > - Wernher Von Braun (1912-1977) > > On Fri, 17 Jun 2005, J-C Hendrickx wrote: > > > Bonjour, > > > > Il me semble qu'avec mon ancienne version de Vim, > > lorsque je rechargeait un fichier, le curseur se > > positionnait exactement là où je l'avais laissé > > lors de l'édition précédente. Capito ? > > > > Avec ma nouvelle installation ça ne se fait plus. > > Je dois commander CTRL-O. > > > > Question: > > Qq connaît-il l'astuce pour que Vim positionne > > le curseur, lorsque j'ouvre le fichier, là où > > je l'ai laissé lors de l'édition précédente ? > > > > Serviteur, > > > > J-C H. > > > > > _______________________________________________________ > Linux Mailing List - http://www.unixtech.be > Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux > Archives: http://www.mail-archive.com/linux@lists.unixtech.be > IRC: chat.unixtech.be:6667 - #unixtech > NNTP: news.gname.org - gmane.org.user-groups.linux.unixtech
-- --_----------------------------- (o- Jean-Claude Hendrickx //\ Linux ex machina v_/_ ________________________ _______________________________________________________ Linux Mailing List - http://www.unixtech.be Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux Archives: http://www.mail-archive.com/linux@lists.unixtech.be IRC: chat.unixtech.be:6667 - #unixtech NNTP: news.gname.org - gmane.org.user-groups.linux.unixtech