Skip to content

Instantly share code, notes, and snippets.

@fespinoza
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fespinoza/4dd82942105c56889d7a to your computer and use it in GitHub Desktop.
Save fespinoza/4dd82942105c56889d7a to your computer and use it in GitHub Desktop.
Vim talk

Tips y Trucos de Vim que más uso

Intro

  • uso vim por 3-4 años

Plugins que no pueden faltar en tu .vimrc

Generales

  • vundle
  • snipmate
    • :SnipMateOpenSnippetFiles
  • autocomplete
  • ctrlp
  • bufexplorer
  • nerdcommenter
  • nerdtree
  • ack

Para desarrollo con Rails

  • vim-ruby
  • vim-rails
  • vim-bundler
  • vim-dispatch
  • autoTag
  • gem-ctags

Features y Comandos

Buscar y Reemplazar

  • *
  • :%s//hola/g
  • busqueda n, N

Movimientos y Scroll

  • movimientos 0, $, w, ]
  • moving pages C-F, C-B
  • cursor position H, M, L
  • scroll zt, zz, zb

CTags

  • C-], C-T
  • :tags
  • :tselect

Completion

  • completion commands C-x C-F, C-x C-]

Text Objects

  • text-objects, gqip
  • composing commands commands: daX

Plugin Related

  • Tabularize
  • Rspec and quickfix list
  • Rails.vim projections

Varios

  • :so
  • :windo, :bufdo
  • !
  • splits

Algunas Configuraciones Útiles

  • .vimrc locales
set exrc
  • Para cambiar de archivos rápidamente
nnoremap <leader><leader> <c-^>
  • Obtener rápidamente el nombre del directorio actual
cnoremap %% <C-R>=expand('%:h').'/'<cr>

Fuentes de Información

El comando :help

  • :help más uso de CTAGS

Links y Recursos

Outro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment