I made a plugin to generate Markdown table from csv in Vim

I had a lot of chances to write Markdown because it was a memo or work when I went to a study session recently, so I made it.

How To

When to use

When building a new table

When editing an existing table

Command line tools

Unsupported items (no plans to support)

bonus

Draw a horizontal line with vim

r is a command that replaces only one character, but it is applied to all when range selection is done.

  1. Duplicate the longest line to the line you want to draw a line

Draw a vertical line with vim

Characters can be written vertically by inserting from the rectangle selection

  1. Select rectangle <Ctrl-v> and press ʻI` to enter insert mode

Erase vertically with vim

You can also delete from the rectangle selection

  1. Select a rectangle <Ctrl-v>

By the way, if you enter the insert mode with c etc. without deleting with x etc., you can edit all lines at once

in conclusion

Actually, if you know the bonus, you can do it with just Vim, but it is really convenient to master the rectangle selection. Also, it's really fun to make and post .gif

Please use it! !! !!

Recommended Posts

I made a plugin to generate Markdown table from csv in Vim
I made a command to generate a table comment in Django
I made a command to markdown the table clipboard
I made a tool to generate Markdown from the exported Scrapbox JSON file
I made a tool to automatically generate a simple ER diagram from the CREATE TABLE statement
I made a web application in Python that converts Markdown to HTML
I want to convert a table converted to PDF in Python back to CSV
I tried to automatically generate a port management table from Config of L2SW
Create a plugin to run Python Doctest in Vim (2)
I made a script to put a snippet in README.md
Create a plugin to run Python Doctest in Vim (1)
How to display DataFrame as a table in Markdown
I made a tool to create a word cloud from wikipedia
I made you to execute a command from a web browser
Write a vim plugin in Python
I made a prime number table output program in various languages
I made a command to display a colorful calendar in the terminal
I made a garbled generator that encodes favorite sentences from UTF-8 to Shift-JIS (cp932) in Python
I want to print in a comprehension
I made a payroll program in Python!
I made a script to display emoji
Write a simple Vim Plugin in Python 3
Generate a class from a string in Python
Convert from Markdown to HTML in Python
In Vim: set to output html from markdown using pandoc with make
A story I was addicted to when inserting from Python to a PostgreSQL table
I made a CLI tool to convert images in each directory to PDF
I made a script in python to convert .md files to Scrapbox format
I made a program to check the size of a file in Python
I made a library to operate AWS CloudFormation stack from CUI (Python Fabric)
I want to create a window in Python
How to generate a Python object from JSON
[Memo] I tried a pivot table in Python
I made an appdo command to execute a command in the context of the app
I made a tool to compile Hy natively
I made a module in C language to filter images loaded by Python
I want to create a plug-in type implementation
I wrote a script to upload a WordPress plugin
I tried to generate a random character string
I made a tool to get new articles
In Python, I made a LINE Bot that sends pollen information from location information.
I made a Caesar cryptographic program in Python.
I made a package to create an executable file from Hy source code
I made a plug-in from the Japan Meteorological Agency GPV to easily create an animated contour diagram with QGIS.
I was soberly addicted to calling awscli from a Python 2.7 script registered in crontab
[Python] I made a system to introduce "recipes I really want" from the recipe site!
I can't sleep until I build a server !! (Introduction to Python server made in one day)
I forgot to operate VIM, so I made a video for memorization. 3 videos by level
I wrote Python code to create a table (view) dependency diagram (PlantUML) from SQL
I want to embed a variable in a Python string
I want to easily implement a timeout in python
I tried to create a table only with Django
I made a prime number generation program in Python
I want to generate a UUID quickly (memorandum) ~ Python ~
I want to transition with a button in flask
I made a library to separate Japanese sentences nicely
I made a vim learning game "PacVim" with Go
I want to write in Python! (2) Let's write a test
I tried to implement a pseudo pachislot in Python
I made a Python module to translate comment outs
I made a code to convert illustration2vec to keras model