3

I have read several questions here regarding clever and seldomly used commands for VIM. However, I haven't seen the grammar for VIM. Does anyone know where I can find it?

References:

What is your most productive shortcut with Vim?

https://stackoverflow.com/questions/95072/what-are-your-favorite-vim-tricks

Community
  • 1
  • 1
No One in Particular
  • 2,846
  • 4
  • 27
  • 32
  • What do you mean by "the grammar for VIM"? – romainl Jun 12 '11 at 04:58
  • 1
    If you want something like [count]command[motion|text-object] I think it's fairly consistent and easy to get from Vim's own documentation and, once you know a few commands, easy to apply to new situations. See `:help join` for example: `:[range]j[oin][!] [flags]`. That's what I understand by "grammar for VIM", is that what you mean?. – romainl Jun 12 '11 at 05:11
  • 1
    @romainl - I was hoping for a definitive BNF type grammar. Does this exist? – No One in Particular Jun 12 '11 at 05:36
  • It's funny to reply to no one in particular. Anyway I'm out of my league here (I had to google around to see what BNF stands for). Most of the Vim users here are just that, users. Maybe you'd have more luck on the dev mailing list : http://www.vim.org/maillist.php#vim-dev – romainl Jun 12 '11 at 11:11

2 Answers2

5

I know this is late to the game, but I found some very good answers in the following articles:

The Grammar of Vim

Learn to speak vim – verbs, nouns, and modifiers!

These have greatly increased my understanding of Vim.

Galen
  • 499
  • 5
  • 14
1

This is a great question to sharpen your googling teeth on. Here's what I found:

http://www.vim.org/docs.php

Amir Afghani
  • 37,814
  • 16
  • 84
  • 124