unix - vim folding - how to copy unfolded lines -


i copy/delete lines except folded lines , vice-versa. how do that? ok if have use plugin well. but, love have functionality.

:folddoopen y w 

yanks every non-folded line register w. w used append register w.

:folddoopen d 

deletes every non-folded line.

there's of course mirror command, :folddoclose acts on every folded line.


Comments

Popular posts from this blog

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

Android Gson.fromJson error -