On Wednesday 11 December 2002 16:55, Dan Sharp wrote: > From: Emmanuel Touzery > > >When I start vim, the cursor is automatically positionned on the posit= ion > >it > >was last time i used the file (macro taken in > >/usr/local/share/vim/vim60/vimrc_example.vim). However, if I was in a > > fold, i > >have each time to enter zo to open the fold. Is there a way that vim c= ould > >do > >this for me? I tried to modify the macro but couldn't get it to work. > > See if adding > > :set foldopen+=3Djump > > in your .vimrc helps. Take a look at :he 'foldopen' for the various > values. Thanks for the suggestion! but that's very strange. actually foldopen=3Dall solves the problem. it works. but it's pretty ext= reme of=20 course. none of the other options seem to solve the problem by itself. and if i p= ut=20 all of the the document options together: set foldopen=3Dblock,hor,insert,jump,mark,percent,quickfix,search,tag,und= o or: set foldopen=3D"block,hor,insert,jump,mark,percent,quickfix,search,tag,un= do" it doesn't work! does anybody know what i'm missing? > Dan Sharp > > _________________________________________________________________ > MSN 8 with e-mail virus protection service: 2 months FREE* > http://join.msn.com/?page=3Dfeatures/virus