Portál AbcLinuxu, 9. května 2025 21:28

Dotaz: Vim a Foldy

17.9.2006 13:45 fakenickname | skóre: 42 | blog: fakeblog
Vim a Foldy
Přečteno: 172×
Odpovědět | Admin
Zdravíčko,
  vemu to krátce: Umí VIM uložit se souborem zároveň vytvořené Foldy nebo jsou fční pouze pro aktuální otevření?
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

17.9.2006 21:34 w0rm
Rozbalit Rozbalit vše Re: Vim a Foldy
Odpovědět | | Sbalit | Link | Blokovat | Admin
pozrel by som sa do tohto suboru(umiestnenie je specificke pre distro, toto je na gentoo): /usr/share/vim/vim70/doc/usr_28.txt

ak ho nebudes vediet najst mozes skusit locate usr_28.txt

inak help vimu je vcelku dobry, takze potom doporucujem :help fold :)

aby som to skratil tu mas vycuc: *28.4* Saving and restoring folds

When you abandon a file (starting to edit another one), the state of the folds is lost. If you come back to the same file later, all manually opened and closed folds are back to their default. When folds have been created manually, all folds are gone! To save the folds use the |:mkview| command:

:mkview

This will store the settings and other things that influence the view on the file. You can change what is stored with the 'viewoptions' option. When you come back to the same file later, you can load the view again:

:loadview

You can store up to ten views on one file. For example, to save the current setup as the third view and load the second view:

:mkview 3 :loadview 2

Note that when you insert or delete lines the views might become invalid. Also check out the 'viewdir' option, which specifies where the views are stored. You might want to delete old views now and then.

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.