Am 09.01.2013 18:35, schrieb Wiktor Ruben:
Hello Vimmers,Let's create sample fold: vim -u NONE -N :set foldmethod=marker i {{{1<CR> foo bar zaz<CR> foo bar zaz<Esc>bmm0za OK, now we have mark 'm' set at the beginning of second 'zaz' within closed fold and cursor placed at the beginning of the last line. The problem is: when we jump to the mark with '`m' our fold stays closed. I guess that fold isn't opened because cursor is already at mark line (but in different column). I find this bahaviour annoying e.g. opening file edited a while ago and executing '`^' or '`.' makes me confused because I have to additionally execute 'zv' to get where I want. There is no need for 'zv' after jump from line different from mark line. Is there a way to force Vim to open fold even if cursor is already at destination line?
You can also hit zero `0' to open the fold, that is only one keypress. And when something is annoying, a brute force method seem just right: nn `a `azv nn `b `bzv nn `c `czv nn `d `dzv nn `e `ezv nn `f `fzv nn `g `gzv nn `h `hzv nn `i `izv nn `j `jzv nn `k `kzv nn `l `lzv nn `m `mzv nn `n `nzv nn `o `ozv nn `p `pzv nn `q `qzv nn `r `rzv nn `s `szv nn `t `tzv nn `u `uzv nn `v `vzv nn `w `wzv nn `x `xzv nn `y `yzv nn `z `zzv -- Andy -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
