ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Quitting Vi

    Scheduled Pinned Locked Moved IT Discussion
    33 Posts 14 Posters 3.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • coliverC
      coliver @DustinB3403
      last edited by

      @dustinb3403 said in Quitting Vi:

      @scottalanmiller said in Quitting Vi:

      @coliver said in Quitting Vi:

      I prefer vi... I've been burned by not having nano in the past and forced myself to learn vi because of that.

      Same here. I've seen Fortune 100 companies production brought down because no one knew vi and nothing else was available in a crash.

      These scenarios are so out past the moon for most of us that they would rarely occur. Like buying 4 servers to protect from 2 of them dying.

      That's true... although it happened to me when working in an SMB (tiny 100-200 person SMB) with some legacy systems.

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller @DustinB3403
        last edited by

        @dustinb3403 said in Quitting Vi:

        @scottalanmiller said in Quitting Vi:

        @coliver said in Quitting Vi:

        I prefer vi... I've been burned by not having nano in the past and forced myself to learn vi because of that.

        Same here. I've seen Fortune 100 companies production brought down because no one knew vi and nothing else was available in a crash.

        These scenarios are so out past the moon for most of us that they would rarely occur. Like buying 4 servers to protect from 2 of them dying.

        Not as crazy as you might think. All it takes is certain storage devices failing.

        1 Reply Last reply Reply Quote 2
        • NerdyDadN
          NerdyDad
          last edited by

          For those like me who doesn't know vi very well, a reference sheet.

          http://www.lagmonster.org/docs/vi.html

          If you do a quick Google search, you will find a number of reference cards and sheets for vi from colleges and universities.

          1 Reply Last reply Reply Quote 3
          • wirestyle22W
            wirestyle22
            last edited by

            I definitely prefer nano, but knowing vi (at least to a base degree like i do) is pretty much necessary as you are likely to eventually run into a situation where you don't have access to nano. Common discussion around here though

            1 Reply Last reply Reply Quote 1
            • PenguinWranglerP
              PenguinWrangler
              last edited by

              My daughter's first laptop that she got here recently was Korora 25. I then pointed her to this site https://vim-adventures.com/ and she learned VIM as a game. Her and I are going through a Python class together.

              wirestyle22W NerdyDadN 2 Replies Last reply Reply Quote 6
              • wirestyle22W
                wirestyle22 @PenguinWrangler
                last edited by

                @penguinwrangler said in Quitting Vi:

                My daughter's first laptop that she got here recently was Korora 25. I then pointed her to this site https://vim-adventures.com/ and she learned VIM as a game. Her and I are going through a Python class together.

                What a great idea

                1 Reply Last reply Reply Quote 0
                • NerdyDadN
                  NerdyDad @PenguinWrangler
                  last edited by

                  @penguinwrangler said in Quitting Vi:

                  My daughter's first laptop that she got here recently was Korora 25. I then pointed her to this site https://vim-adventures.com/ and she learned VIM as a game. Her and I are going through a Python class together.

                  If you don't mind me asking, how old is your daughter? My 7-year-old got a NextBook with Windows 10 for christmas and I'm considering trying at least Fedora on it for her instead.

                  1 Reply Last reply Reply Quote 0
                  • ObsolesceO
                    Obsolesce
                    last edited by

                    Vi is not hard. All you have to know at minimum is how to get in it, how to move the curser & change/add text, how to save, and how to exit:

                    vi
                    up/down/left/right
                    ZZ
                    q!

                    If you can remember that, you'll be just fine.

                    coliverC 2 Replies Last reply Reply Quote 3
                    • coliverC
                      coliver @Obsolesce
                      last edited by

                      @tim_g said in Quitting Vi:

                      Vi is not hard. All you have to know at minimum is how to get in it, how to move the curser & change/add text, how to save, and how to exit:

                      vi
                      up/down/left/right
                      ZZ
                      q!

                      If you can remember that, you'll be just fine.

                      ZZ is a new one for me I just use :wq.

                      wirestyle22W 1 Reply Last reply Reply Quote 0
                      • wirestyle22W
                        wirestyle22 @coliver
                        last edited by

                        @coliver said in Quitting Vi:

                        @tim_g said in Quitting Vi:

                        Vi is not hard. All you have to know at minimum is how to get in it, how to move the curser & change/add text, how to save, and how to exit:

                        vi
                        up/down/left/right
                        ZZ
                        q!

                        If you can remember that, you'll be just fine.

                        ZZ is a new one for me I just use :wq.

                        Same

                        1 Reply Last reply Reply Quote 0
                        • momurdaM
                          momurda
                          last edited by

                          Dont forget about i. I always do.

                          1 Reply Last reply Reply Quote 0
                          • coliverC
                            coliver @Obsolesce
                            last edited by coliver

                            @tim_g said in Quitting Vi:

                            Vi is not hard. All you have to know at minimum is how to get in it, how to move the curser & change/add text, how to save, and how to exit:

                            vi
                            up/down/left/right
                            ZZ
                            q!

                            If you can remember that, you'll be just fine.

                            You should add / to your list.

                            1 Reply Last reply Reply Quote 0
                            • RamblingBipedR
                              RamblingBiped @DustinB3403
                              last edited by

                              @dustinb3403 said in Quitting Vi:

                              @scottalanmiller said in Quitting Vi:

                              @coliver said in Quitting Vi:

                              I prefer vi... I've been burned by not having nano in the past and forced myself to learn vi because of that.

                              Same here. I've seen Fortune 100 companies production brought down because no one knew vi and nothing else was available in a crash.

                              These scenarios are so out past the moon for most of us that they would rarely occur. Like buying 4 servers to protect from 2 of them dying.

                              Now this doesn't mean don't learn Vi (I try and learn myself) I just don't like the interface.

                              We have over 1000 Linux servers and Vi is the only option on the greater majority (75%+). None of our QA, Stage, or Production systems come with anything else.

                              I like and use Vim, and go with Vi if that's all I've got. Here's a great book for anyone looking to become a Vim power user: Practical Vim (https://pragprog.com/book/dnvim2/practical-vim-second-edition)

                              travisdh1T 1 Reply Last reply Reply Quote 0
                              • RamblingBipedR
                                RamblingBiped
                                last edited by

                                Also, installing Vim and typing 'vimtutor' at any terminal will launch an interactive beginner's tutorial on Vim.

                                1 Reply Last reply Reply Quote 2
                                • wirestyle22W
                                  wirestyle22
                                  last edited by

                                  i'm going to drown in linux-related books

                                  1 Reply Last reply Reply Quote 0
                                  • travisdh1T
                                    travisdh1 @RamblingBiped
                                    last edited by

                                    @ramblingbiped said in Quitting Vi:

                                    @dustinb3403 said in Quitting Vi:

                                    @scottalanmiller said in Quitting Vi:

                                    @coliver said in Quitting Vi:

                                    I prefer vi... I've been burned by not having nano in the past and forced myself to learn vi because of that.

                                    Same here. I've seen Fortune 100 companies production brought down because no one knew vi and nothing else was available in a crash.

                                    These scenarios are so out past the moon for most of us that they would rarely occur. Like buying 4 servers to protect from 2 of them dying.

                                    Now this doesn't mean don't learn Vi (I try and learn myself) I just don't like the interface.

                                    We have over 1000 Linux servers and Vi is the only option on the greater majority (75%+). None of our QA, Stage, or Production systems come with anything else.

                                    I like and use Vim, and go with Vi if that's all I've got. Here's a great book for anyone looking to become a Vim power user: Practical Vim (https://pragprog.com/book/dnvim2/practical-vim-second-edition)

                                    At that point, why do you even need to touch any individual server rather than using your management platform of choice (salt, tower, etc.)

                                    RamblingBipedR ObsolesceO 2 Replies Last reply Reply Quote 1
                                    • RamblingBipedR
                                      RamblingBiped @travisdh1
                                      last edited by

                                      @travisdh1 said in Quitting Vi:

                                      @ramblingbiped said in Quitting Vi:

                                      @dustinb3403 said in Quitting Vi:

                                      @scottalanmiller said in Quitting Vi:

                                      @coliver said in Quitting Vi:

                                      I prefer vi... I've been burned by not having nano in the past and forced myself to learn vi because of that.

                                      Same here. I've seen Fortune 100 companies production brought down because no one knew vi and nothing else was available in a crash.

                                      These scenarios are so out past the moon for most of us that they would rarely occur. Like buying 4 servers to protect from 2 of them dying.

                                      Now this doesn't mean don't learn Vi (I try and learn myself) I just don't like the interface.

                                      We have over 1000 Linux servers and Vi is the only option on the greater majority (75%+). None of our QA, Stage, or Production systems come with anything else.

                                      I like and use Vim, and go with Vi if that's all I've got. Here's a great book for anyone looking to become a Vim power user: Practical Vim (https://pragprog.com/book/dnvim2/practical-vim-second-edition)

                                      At that point, why do you even need to touch any individual server rather than using your management platform of choice (salt, tower, etc.)

                                      We don't normally unless we have to investigate any issues that might arise. And even then we don't normally need a text editor.

                                      1 Reply Last reply Reply Quote 1
                                      • ObsolesceO
                                        Obsolesce @travisdh1
                                        last edited by

                                        @travisdh1 said in Quitting Vi:

                                        @ramblingbiped said in Quitting Vi:

                                        @dustinb3403 said in Quitting Vi:

                                        @scottalanmiller said in Quitting Vi:

                                        @coliver said in Quitting Vi:

                                        I prefer vi... I've been burned by not having nano in the past and forced myself to learn vi because of that.

                                        Same here. I've seen Fortune 100 companies production brought down because no one knew vi and nothing else was available in a crash.

                                        These scenarios are so out past the moon for most of us that they would rarely occur. Like buying 4 servers to protect from 2 of them dying.

                                        Now this doesn't mean don't learn Vi (I try and learn myself) I just don't like the interface.

                                        We have over 1000 Linux servers and Vi is the only option on the greater majority (75%+). None of our QA, Stage, or Production systems come with anything else.

                                        I like and use Vim, and go with Vi if that's all I've got. Here's a great book for anyone looking to become a Vim power user: Practical Vim (https://pragprog.com/book/dnvim2/practical-vim-second-edition)

                                        At that point, why do you even need to touch any individual server rather than using your management platform of choice (salt, tower, etc.)

                                        Wow... yeah there's no way I would be doing anything on individual servers... like ever. Unless 999 of them are the same and 1 was unique in such as way it wouldn't make sense to use a configuration management tool. (puppet/chef/ansible/salt/etc.)

                                        1 Reply Last reply Reply Quote 1
                                        • dbeatoD
                                          dbeato
                                          last edited by

                                          The way I learned was to use :q!
                                          I always use that, and if I want to say while still working I use :w!

                                          1 Reply Last reply Reply Quote 0
                                          • EddieJenningsE
                                            EddieJennings @jmoore
                                            last edited by

                                            @jmoore said in Quitting Vi:

                                            Probably a silly question here. I see people quitting Vi using :x and :wq if I remember right. I've always just used the :x option to save my work. Am I using this correctly or should I be doing it another way?

                                            :x for the win 🙂

                                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post