Jump to content

File:Vim modes.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 200 × 244 pixels, file size: 47 KB)

Summary

Description
Magyar: A Vim szövegszerkesztő egyik sajátossága, hogy többféle módja (állatpota) van. Alapból nem szöveget lehet beírni, hanem az egyes betűk egy-egy műveletet végeznek el (ugrás, törlés...).
Date
Source Own work
Author Harp

It was created as a tikz picture. Source below

\documentclass[tikz,convert={outfile=\jobname.svg}]{standalone}
\newcommand{\Esc}{\framebox{\texttt{Esc}}}
\newcommand{\Enter}{\framebox{\texttt{Enter}}}
\usetikzlibrary{positioning,automata}
\tikzset{ %inner sep = 0.5mm,
  %minimum size = 5mm,
  >=latex,
  every state/.style={draw=blue!50,thick,fill=blue!20,minimum size=1.8cm},
  {small point/.style} ={circle,draw=blue!60,fill=blue!30,inner sep=0, minimum size= 1mm},
  box/.style ={circle,draw=black!60,fill=black!20,inner
  sep=5pt,fill=blue!30,draw=blue!60,rectangle},
  {edge/.style} ={thick,draw},
  {dedge/.style} ={draw,->},
 }
\begin{document}
\begin{tikzpicture}[node distance=1.5cm,/tikz/initial text=,
                initial distance=5ex]
        \node[state,initial] (n) at (0,0) {normal}; 
        \node[state] (c) [above=of n]
                {\parbox[c]{1.5cm}{\small command-line}}; 
        \node[state] (v) [right=2cm of n] {visual}; 
        \node[state] (i) [below=1.5cm of n] {insert}; 
        %\node (h) [below=.5cm of i] {:help vim-modes}; 
        \path[dedge] (n) edge[bend left=15] node[left,near end] {:,/,?} (c)
                edge[bend left=15] node[above] {v,V,Ctrl-V} (v)
                edge[bend right=15] node[left,near end] {iIaAoOc\ldots} (i);
        %\path[dedge] (-1.5cm,0) -- (n);
        \path[dedge] (i) edge[bend right=15] node[right,near start] {\Esc} (n);
        \path[dedge] (v) edge[bend left=15] node[below] {\Esc} (n);
        \path[dedge] (c) edge[bend left=15] node[right,near start]
        {\Esc,\Enter} (n);
\end{tikzpicture}
\end{document}

I could only create PDF (direct SVG creation didn't work for me) and then I used pdf2svg command on Linux to convert into SVG. On Fedora and similar use the package texlive-collection-latexextra on Debian and similar texlive-latex-extra

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Vim modes

Items portrayed in this file

depicts

12 August 2023

image/svg+xml

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current10:08, 12 August 2023Thumbnail for version as of 10:08, 12 August 2023200 × 244 (47 KB)HarpUploaded own work with UploadWizard

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata