Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

anybody use vim in a terminal as editor?

  • 26-04-2006 11:30am
    #1
    Closed Accounts Posts: 247 ✭✭


    Hi,
    i used to always use gvim but cant install it now.
    So i must use vim in a terminal.

    So what i always like to do is split the window vertically and open 3 or 4 files in the one window. That was fine in gvim because i could resize each window so you'd not even know 4 files were open. You could always maximise one file so it dominated the window.

    now in vim in a terminal i try to do the same but i cant resixe the partitions. It doesnt recognise the mouse or an option may be set to have each window equal.

    Does anyone know how to get around this?

    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 2,747 ✭✭✭niallb


    anybody use vim in a terminal as editor?

    All the time. (I really mean all the time :-) )

    vim -O file1 file2 file3 for starters to get the vertical split.
    Alternatively, if you start vim with a list of filenames,
    :vertical all will split and show you them.

    The key you need to change sizes is CTRL-W.
    CTRL-W + increases size, and CTRL-W - decreases size.
    CTRL-W _ (underscrore will make the active window as big as possible
    leaving a line each for the others.

    Vim's helpfile has all the commands for doing surprising things with windows. Try : help usr_08.txt

    Alternatively, you can just view one at a time,
    and move between them using :next and :previous

    Enjoy,
    NiallB


  • Closed Accounts Posts: 247 ✭✭because_I_can


    cheers for that, i knew those short cuts but unfortunately they dont work in my current terminal...

    There must be some option set by default that locks the size...
    its not in my .vimrc as thats almost empty.

    Any other idea's cause this is driving me mad...


  • Closed Accounts Posts: 247 ✭✭because_I_can


    got it, well one of the lads here did.

    that ctrl w + only works for horizontal split.
    ctrl w < OR ctrl w > does it for vertical

    also ctrl w | maximises current window


    thanks


  • Registered Users, Registered Users 2 Posts: 2,747 ✭✭✭niallb


    Well spotted.
    In a horizontal split, the underscore effectively maximises.

    Thanks for the <>| update.
    I don't use split much, just knew you start
    with -O for vertical instead of -o.

    NiallB


  • Closed Accounts Posts: 884 ✭✭✭NutJob


    IF your using windows terminal tool expect fun.


    Windows will catch all the ctrl + D ....... ctrl + w ....
    and use them as its own shortcut instead of sendind them down the socket


  • Advertisement
Advertisement