How do you feel about code folding?
For those of you in the Visual Studio environment, how do you feel about wrapping any of your code in #regions? (or if any other IDE has something similar...) ...
For those of you in the Visual Studio environment, how do you feel about wrapping any of your code in #regions? (or if any other IDE has something similar...) ...
I've been given some code with commenting unlike anything I've come across before: //{{{ Imports import imports; //}}} It is the same for each method block, //{{{ above the code block //}}} below the code block ALSO SEE: http://en.wikipedia.org/wiki/Folding_editor ...
Is there any way to manually create fold points in code in Eclipse? I know how to enable folding and how to set the auto preferences, but i like being able to set my own fold points so I can ignore certain parts of my code. Think regions in VS. I know there is in VS and NetBeans, but I cannot find a way to set manual fold points in Ecl...
I work in a Unix environment with the typical Unix tools (emacs, vim, gvim, sunstudio, etc) My project has huge gross boilerplate comments on every method. It makes the files thousands of lines long, with a couple hundred lines of actual code. I may be exagerrating a bit but you get the idea. I am looking for a way when viewing these fi...
I am interested in enabling code folding in vim for python coding. I have noticed multiple ways to do so. Does anyone have a preferred way to do python code folding in vim? I.e, do you have a particular vim plugin that you use and like? do you use manual folding or do you place markers in comments? any other recommended ways to do c...
I just have started to learn Haskell and combine reading books and tutorials with solving problems from Project Euler. I have stuck on Problem 27 because I get "C stack overflow" error using this code: euler.hs divisors n = [x | x <- [1..n `div` 2], n `mod` x == 0] ++ [n] is_prime n = divisors n == [1, n] f a b = [n^2 + a * n + b | n ...
This is my code: type HoraAtendimento = (String, Int, Int) htmlHAtendimento :: [HoraAtendimento] -> Html htmlHAtendimento [] = toHtml "" htmlHAtendimento ((da,hia,hfa):[]) = toHtml da +++ "feira " +++ show hia +++ "h - " +++ show hfa +++ "h" htmlHAtendimento ((da...
I my last question about haskell, the answer provided gave me another doubt... Instead of using the somewhat complex function in my other question, here's a simpler example: sumAll :: [(Int,Int)] -> Int sumAll xs = foldr (+) 0 (map f xs) where f (x,y) = x+y Calling sumAll [(1,1),(2,2),(3,3)] the output will be 12. What I don't unde...
Question: Does Emacs have a canonical equivalent of Vim's Folding with Foldmethod=indent? I am particularly interested in something that can work alongside any Emacs major mode and any file. The Emacs searches have not turned up a definitive answer. ...
Firstly, Real World Haskell, which I am reading, says to never use foldl instead of foldl'. So I trust it. But I'm hazy on when to use foldr vs. foldl'. Though I can see the structure of how they work differently laid out in front of me, I'm too stupid to understand when "which is better." I guess it seems to me like it shouldn't real...
Hello! I have a bash script file which starts with a function definition, like this: #!/bin/bash # ..... # ..... function test { ... ... } ... ... I use vim 7.2, and I have set g:sh_fold_enabled=1 such that folding is enabled with bash. The problem is that the folding of the function test is not ended correctly, i.e. it lasts until t...
Hi all, is there a way to hide columns of a buffer (text file, you know what I mean) while editing it in Vim? e.g. text visible in the buffer before hiding column 2&3: abbcccccc accdddddd And after hiding them: acccccc adddddd (Not to mention I'm working with really huge files (sometimes over 200 gb).) And yeah, I had found fold...
I know nothing about Vim expressions. I have a vim foldexpr that comes with a syntax file for xdebug trace files. The existing expression looks like this: foldexpr=strlen(substitute(substitute(substitute(substitute(getline(v:lnum),'^TR.*$','',''),'\\s>=>','->',\"g\"),'^\\s.\\{20\\}\\(\\s\\+\\)\\?->.*$','\\1',''),'\\s\\s','\',\"g\"))-2 ...
I am in a project with 3 people. We need to have the same folds in Vim for each member. How can I share my folds? [Feedback] I understood one important thing: Google ignores signs, such as {{{, so please google "VIM three braces" to find help about the marker-method. It becomes much easier to practise, as you can quickly find relevant...
I have a huge textfile, approx 400.000 lines 80 charachters wide on liux. Need to "unfold" the file, merging four lines into one ending up having 1/4 of the lines, each line 80*4 charachters long. any suggestions? ...
I'm trying to edit files with vim and get the POD automatically folded (just the POD, not the Perl). I can't get it to work, so I've tried disabling all of my plugins and my .vimrc with this: vim -u NONE some_perl.pl I assume that my POD blocks in my project with start with '=head1', '=head2' or '=head3'. They will always end with '...
I would like to have automatic folds for comments in my AquaEmacs. ...
A code is over 2 000 lines full of folds. I select a certain block in Visual mode to which I would like to start writing. However, things around, such as folds, hinter my writing, and I accidentally tend to modify them. Currently, I avoid such mistakes by writing the block in a separate VIM. It is not a real solution, and it gets awkward...
Every once in a while I'm editing some long pair of if-then-else statements (or worse, nested if-then-else statements) , like, say, this: if A < B then begin DoSomething; DoSomethingElse; {...and more statements going on and on and on...} FinallyWrapUpThisBit; end else begin DoThis; DoThat; {......
I have downloaded php.vim file, which contains PHP-based syntax information. It should be able to provide syntax based folding, but I can't make it work for some reason. I have set :let g:php_folding 2 and :set foldmethod=syntax but for no avail. I'm pretty sure the file is in right place and is read by vim, since I can do :let g:php_sq...