Thread: Seeing more with VIM

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by nkbxwb View Post
    I have a long list of numbers that I am doing a lot with. I want to print them out after every operation, to ensure that I have done the operation correctly. I am using VIM, but it seems that VIM will only allow me to see a certain number of lines when I execute my program. For example, if I have 500 lines of printout, it will only print out like 300 of them. I'm pretty sure this is a fault of VIM, because I can see small printouts just fine (like less than 200).
    How are you executing? I've been a vim user for years. In general I don't execute from it, but when I do, I've never noticed this problem. Most likely, as Salem suggests, this is because of your console. Try gvim instead.

    If I do execute I use

    :!whatever

    Where "whatever" is the command.

    Quote Originally Posted by CommonTater View Post
    I'm thinking he's hitting the 512 character line length stated in the vim manual.
    No, that is from ye olde unix vi. There is no such limit in vim.



    To be honest, I don't see the purpose of using one megalithic app to edit, compile, and execute, when you can simply use VIM and flip back and forth between that and a console window. OTOH, I know the MS windows console leaves a lot to be desired, lol, if that is where you are...

    VIM is dedicated to being the best code editor in the universe, but it will not make toast and coffee for you. You can try to use it that way (or switch to something that does claim to include the kitchen sink), or you can just learn to make toast and coffee the original way, which is pretty darn simple, really. It might even still be the simplest way, but YMMV.
    Last edited by MK27; 11-08-2011 at 02:11 AM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed