vim.tex 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. \documentclass[a4paper,10pt,landscape]{article}
  2. \usepackage{myStyle}
  3. \begin{document}
  4. \raggedright
  5. \footnotesize
  6. \begin{multicols}{3}
  7. % multicol parameters
  8. % These lengths are set only within the two main columns
  9. %\setlength{\columnseprule}{0.25pt}
  10. \setlength{\premulticols}{1pt}
  11. \setlength{\postmulticols}{1pt}
  12. \setlength{\multicolsep}{1pt}
  13. \setlength{\columnsep}{2pt}
  14. \begin{center}
  15. \Large{\textbf{Vim}} \\
  16. \end{center}
  17. \section{Basic commands}
  18. \begin{tabular}{@{}ll@{}}
  19. \verb!:w [file]! & Write to \textit{file} \\
  20. \verb!:x! & Exit, saving changes \\
  21. \verb!:q! & Exit as long as there have been no changes \\
  22. \verb!:q!! & Exit and ignore any changes \\
  23. \verb!:wq! & Save file and exit
  24. \end{tabular}
  25. \section{Inserting Text}
  26. \begin{tabular}{@{}ll@{}}
  27. \keys{i} & Insert before cursor \\
  28. \keys{I} & Insert before line \\
  29. \end{tabular}
  30. \section{Motion}
  31. \begin{tabular}{@{}ll@{}}
  32. \keys{h} & Move left \\
  33. \keys{j} & Move down \\
  34. \keys{k} & Move up \\
  35. \keys{l} & Move right \\
  36. \keys{w} & Move to next word \\
  37. \keys{W} & Move to next blank delimited word \\
  38. \keys{e} & Move to the end of the word \\
  39. \end{tabular}
  40. \end{multicols}
  41. \end{document}