Follow my leader

802afd5856ed0054d7d1851ea21cbabe?s=47 nelstrom
January 29, 2014

Follow my leader

802afd5856ed0054d7d1851ea21cbabe?s=128

nelstrom

January 29, 2014
Tweet

Transcript

  1. 28th January, 2014 Drew Neil @nelstrom FOLLOW my <LEADER>

  2. http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html

  3. Using <leader> let mapleader = "," nnoremap <leader><space> :noh<cr>

  4. https://github.com/AndrewRadev/splitjoin.vim/issues/14

  5. VIM’S GRAMMAR and its blind-spots

  6. operator operator d d y y > > delete line

    yank line indent line
  7. operator motion d w y $ > G delete word

    yank from cursor to EOL indent to end of file
  8. operator non-motion d p d o same as :diffput same

    as :diffget <op> <cmd> AVAILABLE!
  9. operator non-motion y s surround.vim c o unimpaired.vim c x

    exchange.vim
  10. operator-1 operator-2 d c c d <op1> <op2> <nop> <nop>

    AVAILABLE!
  11. TEXT-OBJECTS have vacancies

  12. {i,a} object i “ a ) i t inside double-quotes

    around parentheses inside XML tag
  13. None
  14. {i,a} object i <alpha> a <alpha> AVAILABLE! AVAILABLE!

  15. {i,a} object {i,a} l {i,a} e {i,a} r vim-textobj-line vim-textobj-entire

    vim-textobj-rubyblock
  16. https://github.com/kana/vim-textobj-user/wiki

  17. NAMESPACED MAPS have vacancies

  18. None
  19. namespace command g w z a reformat selected text toggle

    fold open/closed {[,]} c jump to prev/next diff
  20. None
  21. namespace command g c {[,]} o commentary.vim unimpaired.vim {[,]} {u,x,y}

    unimpaired.vim
  22. USELESS COMMANDS are useless

  23. None
  24. SUPERCHARGE built-in commands

  25. namespace command g f rails.vim

  26. OVERRIDE COMMANDS that are meant to be overridden

  27. executes `formatprg` = {motion} executes `equalprg` gq {motion}

  28. None
  29. Using formatprg let &formatprg=“pandoc -f html -t markdown” executes `formatprg`,

    filtering text through pandoc gq {motion}
  30. 28th January, 2014 Drew Neil @nelstrom FOLLOW my <LEADER>