Profile_bird

Hey there! learnvim is using Twitter.

Twitter is a free service that lets you keep in touch with people through the exchange of quick, frequent answers to one simple question: What's happening? Join today to start receiving learnvim's tweets.

Already using Twitter
from your phone? Click here.

learnvim

  1. $VIMRUNTIME contains the path to the directory for various runtime files for Vim. Sometimes, it's useful to check the default ftplugins.
  2. $MYVIMRC contains the path to your vimrc, of course, if you have it. For example, :edit $MYVIMRC
  3. To jump a bookmarked position, use 'a, 'b, ... 'z, 'A, 'B, ... 'Z.
  4. ma, mb, ... mz to bookmark the current position of the current buffer. These bookmarks are local to each buffer.
  5. mA, mB, ... mZ to bookmark the current file. You can jump to a marked file from anywhere.
  6. You have to invoke a plain, non-configured Vim? This is the way to do it: vim -u NONE -U NONE
  7. dj - delete the current line and the next line.
  8. (Unfortunately, these deleting operations are not undo-able by default.)
  9. Another tip: Add "inoremap <C-w> <C-g>u<C-w>" and "inoremap <C-u> <C-g>u<C-w>" in your vimrc to make these operations undo-able.
  10. Useful shortcut in Insert mode: <C-w> to delete a word before the cursor / <C-u> to delete all entered characters in the current line.
  11. Some useful :help documents: :help notations (of special stuffs) / :help usr_12.txt (more tips) / :help! or :help help! (if you are bored)
  12. Some useful :help documents: :help tips (various tips and ideas) / :help standard-plugin-list and :help local-additions (plugin documents)
  13. Some useful :help documents: :help quickref (quick reference) / :help how-do-i (*** on Vim?) / :help sponsor (if you appriciate Vim)
  14. Don't you know how to browse :help? Let's execute ":help" command. Vim will show how to browse. Memoize this. - http://tinyurl.com/2wfkhd
  15. :help is your friend; 99.99% of questions that you'll ask are written in :help. Mastering how to browse :help is the shortcut to master Vim.
  16. Tired to type ":" to do an :ex commands? Let's swap ";" and ":" - "noremap ; :" & "noremap : ;". http://gist.github.com/88714 - #vim