Code folding is a feature of IDEs that allows to hide or, in other words, fold fragments of code.
0
votes
0answers
34 views
notepad++ : if in a var name
In notepad++, I defined a language in:
Language > define your language
In Folder & Default, I put if.
My problem is: When I have a var with if in name a new fold is created.
How I can set if ...
2
votes
2answers
45 views
Can vim treat a folded section as a motion?
I have a folded section in a text document. Can I use the fold as a motion in vim, in the same way a word or WORD is a motion with w/W?
For example daw deletes around a word, so
This is a |t|est
...
2
votes
0answers
27 views
Enable hideshow for more modes, e.g. Ruby?
hideshow is cool, but it's limited to only a few programming languages. Can someone help me add support for more, such as Ruby and Haskell?
1
vote
2answers
66 views
How can I set foldlevelstart in vim to just fold nothing initially, still allowing zr to work immediately?
In vim, I typically set foldmethod to indent for most file types. In general, I like files to open with all folds open. However, it is useful to start immediately using zm to start closing folds ...
1
vote
1answer
162 views
Arbitrary code folding in Eclipse?
I know that we can fold methods,if statement and ... .But I want to fold arbitrary part of code that is written in a method.I guess that in NetBeans we can do this:
// <editor-fold desc="describe ...
2
votes
1answer
42 views
How to search/replace while including or excluding folded text?
Is there any way to run a command like:
:%s/tempdir/temp_dir/g
But apply it only to either folded or unfolded code?
2
votes
2answers
170 views
Batch fold text files with bash script
I am having a hard time doing something quite simple. I have around 2000 .txt files which are composed of a single line of digits. I would like to fold the single line into one column with many rows, ...
0
votes
0answers
98 views
Vim: show subfold headers inside closed folds
Is it possible to show the headers of all subfolds under their respective parent folds in vim? This would be incredibly useful, for example when writing latex, where the document may have 4-5 levels ...
3
votes
1answer
734 views
Is there a way to save the code folding in Notepad++?
When editing a large file, I like to collapse code fragments using the + symbols in Notepad++'s sidebar. However, the code is completely unfolded when I close and reopen a file.
Is there a way to ...
0
votes
2answers
240 views
In Vim, I'm trying to have all class methods fold automatically when I open a file
When I open a PHP file that contains a class, how can I have Vim automatically fold the document up like this?:
1
vote
1answer
62 views
jump to <++> keeping fold
to jump in vim, I use
nnoremap <c-j> /<++><cr>c/+>/e<cr>
but, when the <++> are in a close fold, the <c-j> delete all fold, for this I change to
nnoremap ...
0
votes
1answer
273 views
How can I define vim syntax folding for Informix 4GL source code?
I use vim to edit Informix 4GL source code which has this sort of syntax:
FUNCTION
FOR ...
...
END FOR
END FUNCTION
I wish to fold the functions using za zM etc
This works
:set ...
1
vote
1answer
729 views
How to make Vim not fold everything automatically? [duplicate]
Possible Duplicate:
vim: enable folds but don't automatically close them
Whenever I open Vim, it automatically folds everything. So the first thing I invariably do is to unfold ...