Skip to content

Instantly share code, notes, and snippets.

@javier-lopez
Last active December 17, 2016 23:31
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 javier-lopez/775824ad2f1c80727d4d130a7a00f988 to your computer and use it in GitHub Desktop.
Save javier-lopez/775824ad2f1c80727d4d130a7a00f988 to your computer and use it in GitHub Desktop.
Vim CDMX VIII, 17 de Diciembre del 2017
Ligas para discusión durante la reunión mensual de Vimmers en CDMX.
https://www.meetup.com/cdmx-vim-meetup/
@javier-lopez
Copy link
Author

https://github.com/Two-Finger/hardmode #deshabilita hjkl y teclas flechas

@javier-lopez
Copy link
Author

@humus
Copy link

humus commented Dec 17, 2016

"Teniendo un buffer con este contenido, para ejecutar cada línea con el mapeo, interactúas con tmux
!tmux send-keys c-u 'git status --short' c-m
!tmux select-pane -t .2
!tmux select-pane -t .1

"Comando para mapear ,t a ejecución de la línea bajo el cursor
nnoremap ,t :execute 'silent! ^R=substitute(getline('.'), "'", "''", 'g')' | redraw!
nnoremap gx :execute 'silent! ^R=substitute(getline('.'), "'", "''", 'g')' | redraw!

@humus
Copy link

humus commented Dec 17, 2016

@humus
Copy link

humus commented Dec 17, 2016

particularidades del motor de expresiones regulares de vim:

:h /ordinary-atom

@humus
Copy link

humus commented Dec 17, 2016

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