Skip to content

Instantly share code, notes, and snippets.

@nickwarters
nickwarters / VimSetup.md
Created December 8, 2020 12:58
Setting up coc.nvim
  1. Install coc.nvim as a plugin for Vim

  2. Open vim

  3. Run the following in Vim

:CocInstall coc-marketplace
  1. Once install use the code:
@nickwarters
nickwarters / add_text_to_heading_markdown.py
Created May 15, 2021 16:16
Python script to add text to a specific section of a markdown file
# open and read the file in its current state
with open('./textfile.md' , 'r') as f:
splittext = f.readlines()
# loop over the lines of the file and append text to a specific section
outfile = []
in_scratch = False
line_number = 0
for line in splittext: