vi and OpenBSD

topic posted Fri, October 24, 2003 - 4:38 PM by  Unsubscribed
Greetings all, I've recently switched from Linux to OpenBSD. I use the vim editor and I can only 'undo' one time. Undolevels is set to 1000. Anyone have any idea how I can get multiple undos back?

Also, when you want to type ":e somefile.txt" to edit other files there is no tab completion to cycle through files with similar names. Anyone have any ideas?
posted by:
Unsubscribed
  • lx
    lx
    offline 41

    Re: vi and OpenBSD

    Fri, October 24, 2003 - 6:24 PM
    Yes, install vim if you want those features.
    • Unsu...
       

      Re: vi and OpenBSD

      Fri, October 24, 2003 - 7:48 PM
      I'm using vim 6.1
      • Re: vi and OpenBSD

        Thu, October 30, 2003 - 8:12 AM
        I was of the understanding (and experience thus far) w/ Vim and Vim-lite (small=good) that if one were to indicate a number of under levels say 77 and then press U the previous 77 operations/commands/whatever would be undone. Generally if I'm using more than 2 or 3 undo, it's probably easier to start over... as the cyclic levels of undo and undoing an undo and the action before the undo can become a real brain twister...
        • Unsu...
           

          Re: vi and OpenBSD

          Thu, October 30, 2003 - 11:17 AM
          Hmm, okay this is odd. When I'm in a user shell I can do multiple undos. When I'm in a root shell I only have one undo. I'm sure this is an OpenBSDism.
          • lx
            lx
            offline 41

            Re: vi and OpenBSD

            Mon, November 3, 2003 - 1:31 AM
            Are you sure it's not a $PATH-ism?
            • Unsu...
               

              Re: vi and OpenBSD

              Tue, November 4, 2003 - 6:53 AM
              $PATHs are the same in both shells. 'which vi' produces same result of '/usr/bin/vi'
              • lx
                lx
                offline 41

                Re: vi and OpenBSD

                Sat, December 3, 2005 - 7:38 PM
                If you were using vim, it would be in /usr/local/bin, not /usr/bin. In any event, if you're getting stuck in nvi or vim in compat mode, you have multiple levels of undo, but not the way vim does it. To undo in nvi, type 'u' and then '.' for each additional undo.
                • Re: vi and OpenBSD

                  Fri, December 30, 2005 - 4:56 PM
                  if your path works and roots doesnt, just take your shell settings with you when you su

                  # su -m

                  cause I know your not loggin in as root
                  • This is the maximum depth. Additional responses will not be threaded.

                    Re: vi and OpenBSD

                    Sat, December 31, 2005 - 6:47 AM
                    Nice to see some life here.
                    I just found this group. I have some experiance with Free BSD and Net BSD but I fell away from it for a few years. I now have Linux Slackware 10.2 on my desktop at work and lots of goodies are coming back to me.
                    I thought I would say hi.
                    Brian Rodgers
                    www.outfitnm.com

Recent topics in "BSD"

Topic Author Replies Last Post
confused directories Devin 3 March 23, 2006
Gemu, PC BSD discussion Brian 3 January 6, 2006
Working Knowledge cindy 0 September 8, 2005
how do I get an interface to drop an alias in /etc/ifaliases? 1 May 27, 2005
2BSD, 3BSD man pages chris 0 September 10, 2004