9 Replies - 1294 Views - Last Post: 19 January 2012 - 11:58 AM

Poll: Beginners Tips To Learn Vim (19 member(s) have cast votes)

Which command-line text editor you use?

  1. Vim (13 votes [68.42%] - View)

    Percentage of vote: 68.42%

  2. Emacs (3 votes [15.79%] - View)

    Percentage of vote: 15.79%

  3. Nano (1 votes [5.26%] - View)

    Percentage of vote: 5.26%

  4. Other (2 votes [10.53%] - View)

    Percentage of vote: 10.53%

Vote Guests cannot vote

#1 nathanpc  Icon User is offline

  • SCIENCE!
  • member icon

Reputation: 112
  • View blog
  • Posts: 1,171
  • Joined: 31-July 09

Beginners Tips To Learn Vim

Posted 20 March 2011 - 05:04 AM

I'm the type of developer that only uses GUI fully-featured programmer editor, when I'm at Windows I use Notepad++, at my Mac I use TextMate and at Linux I use GEdit, but now I'm starting to develop inside my Linux server, which doesn't have any window manager installed and I saw this as a beautiful time to learn how to use Vim, which I always had problems to understand, I can't even open a file to edit at Vim, so I want to know: Which are the best tips for a very beginner on this editor to learn how to use it?

I really loved Vim after I saw all the awesome things that you can do with it and this is the perfect moment to learn how to use it.

Is This A Good Question/Topic? 0
  • +

Replies To: Beginners Tips To Learn Vim

#2 EarthShaker  Icon User is offline

  • D.I.C Head

Reputation: 55
  • View blog
  • Posts: 186
  • Joined: 16-March 11

Re: Beginners Tips To Learn Vim

Posted 20 March 2011 - 05:08 AM

It depends on what you want to do with Vim.
If you want to use Vim like a pro, I'd suggest you to get your hands on O'REILLY Learning the Vi and Vim.
Was This Post Helpful? 2
  • +
  • -

#3 mbr2xgd  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 09-May 10

Re: Beginners Tips To Learn Vim

Posted 06 January 2012 - 01:51 PM

Please...

Full documentation:
http://vimdoc.source...oc/usr_toc.html

Vim tutorials:
http://blog.interlin...m_tutorial.html
http://www.yolinux.c...dvanced_vi.html

Youtube:
http://www.youtube.c...h?v=71YTkxUNwmg
http://www.youtube.c...h?v=c6WCm6z5msk
Was This Post Helpful? 0
  • +
  • -

#4 mbr2xgd  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 09-May 10

Re: Beginners Tips To Learn Vim

Posted 06 January 2012 - 08:13 PM

When you open the Vim Editor, you can read the tutorial from Vim.

Try type: ":h toc"
Was This Post Helpful? 0
  • +
  • -

#5 nooblet  Icon User is offline

  • D.I.C Addict

Reputation: 120
  • View blog
  • Posts: 541
  • Joined: 12-March 10

Re: Beginners Tips To Learn Vim

Posted 07 January 2012 - 03:07 AM

Run vimtutor
Was This Post Helpful? 2
  • +
  • -

#6 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 611
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: Beginners Tips To Learn Vim

Posted 07 January 2012 - 09:41 AM

You don't have to abandon GUI entirely when switching to Emacs and Vim. The vast majority of Emacs users, for example, don't use Emacs in the terminal. On the rare occasion that I feel vimmy, I tend to fire up MacVim. There is also gVim for Linux and I know there is something for Windows. These sorts of things can really do wonders at making you feel at home and get up to speed. People are going to tell you that you should just jump ship and abandon all things familiar, but there is no reason to actually do it. If you're forced into a completely unfamiliar environment, you're going to have trouble getting work done and then you're going to give up on Vim entirely and hate it for a year or so before you try it again.

This post has been edited by Raynes: 07 January 2012 - 09:43 AM

Was This Post Helpful? 1
  • +
  • -

#7 Shane Hudson  Icon User is offline

  • D.I.C Technophile
  • member icon

Reputation: 343
  • View blog
  • Posts: 1,286
  • Joined: 06-December 09

Re: Beginners Tips To Learn Vim

Posted 07 January 2012 - 09:58 AM

I use notepad++ on windows and a combination of gedit and vim on linux, I am not expert enough at vim to use it properly... but its nice and easy for basic use.
Was This Post Helpful? 0
  • +
  • -

#8 Gorian  Icon User is offline

  • ninja DIC
  • member icon

Reputation: 120
  • View blog
  • Posts: 1,681
  • Joined: 28-June 08

Re: Beginners Tips To Learn Vim

Posted 19 January 2012 - 10:50 AM

I use vi (not vim), though at first, only because I had no choice. I constantly work with different versions of Solaris (Solaris 8,9,10,11) AIX (5.3, 6.1, 7), HP-UX, Redhat, and SLES. Of those, vi is the only constant (we constantly work with fresh OS installs), and thus the editor of choice, meaning I had to learn to be efficient. It is worth it. I like vi, and constantly learn something new.
Was This Post Helpful? 0
  • +
  • -

#9 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 611
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: Beginners Tips To Learn Vim

Posted 19 January 2012 - 11:41 AM

https://github.com/carlhuda/janus is an excellent starter setup for Vim. Using it myself.
Was This Post Helpful? 0
  • +
  • -

#10 jon.kiparsky  Icon User is online

  • Pancakes!
  • member icon


Reputation: 7630
  • View blog
  • Posts: 12,866
  • Joined: 19-March 11

Re: Beginners Tips To Learn Vim

Posted 19 January 2012 - 11:58 AM

The best way to learn it is to use it, so you want to start by learning the bare minimum to be able to write code in it and not hate it. That's a surprisingly small subset of the program, as it turns out.

Just to get started, focus on getting used to the modal aspect - insert and command modes, and knowing which you're in. Learn the simple navigation techniques first, then learn the way edits (copy and delete) combine with navigation - that part's actually pretty intuitive.

Just that, plus search (:/) and substitution (:s//) and a few other things will give you enough that you can start writing code, and then you can look up what you need and learn it on the go. There's a lot of reference material out on the web, so if you get started using it, you can look up any particular things you find you need.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1