Skip to content

Instantly share code, notes, and snippets.

@islomar
Last active February 14, 2024 11:44
Show Gist options
  • Save islomar/21c4fb7cffc1481a60043266c21a0c0e to your computer and use it in GitHub Desktop.
Save islomar/21c4fb7cffc1481a60043266c21a0c0e to your computer and use it in GitHub Desktop.
Tmate and vim cheatsheet

tmate

Vim

http://vimdoc.sourceforge.net/htmldoc/index.html https://vim.rtorr.com/ https://devhints.io/vim

My notes

gg first line G last line A insert at the end of the line d cut yy yank (paste) u undo:n go to line ni: being on a file of NerdTree, it splits horizontally i: being on a file of NerdTree, it splits vertically :e` refresh Ctrl+z: exist to terminal (then type "fg" at the terminal to go back) Ctrl+x: toggle nerd-tree

Charla Jorge: productividad con VIM

  • vim : vi Improved Command mode Insert mode visual mode

  • vim basico a pelo para servidores

:q :! execute

inicio gg fin G

u -> undo cntrol+R -> redo

:e recargar :file rename o nuevo buffer no es lo mismo que :w

ecape 1 control+G -> line status path

copy and paste con f12

reemplazar: :%s/pattern/replacement/g borrar: :v/error|warn|fail/d borrar la linea de antes :g/keyword/-1d

texto a mayusculas, cw + ~

Navegacion :E :e . :x,yw file -> guarda de la linea x a la y en file :w >> file -> append buffer en file

syntax on

:jumps control +o / control + i ( max 40 jumps )

---- mejorar movimientos

"I recommend configuring and map keys by yourself if you are true Vimmer.

  • vim Vundle
  • vim maze hjkl
  • como poner las manos
  • hardmode
  • busqueda / * y # ?
  • marcas y ''
  • formato de bloque y %
  • sustituir texto dentro de ci+limitador

control p / control n en edicion autocompleta

------ algunos extras

  • colorschemes / pseudo terminals / keys

  • easy motion

  • controlp

  • buffers control+o / control+-

  • buffers control+w control+W

  • switch buffers control wx

  • go tab + gt / gT

  • controlp + funky

  • controlp + tags

  • autopairs

  • syntactic suggar

  • ctags

  • snippets

  • devorak layout

links

vimtutor

http://www.openvim.com/ https://vim-adventures.com/ http://vim.wikia.com/wiki/Mapping_keys_in_Vim_-_Tutorial_(Part_1)

https://github.com/KeyboardFire/xscast https://github.com/wavexx/screenkey screenkey key-mon http://www.vimgolf.com/

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