Misc changes

master
Mark 2022-08-03 10:51:34 -07:00
parent 4f0c720ad6
commit f5cdff4a86
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
3 changed files with 18 additions and 7 deletions

12
.editorconfig Normal file
View File

@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false

View File

@ -1,3 +1,3 @@
# VIM Config # VIM Config
To setup plugins, open vim and run `:PlugInstall`. You'll also need to generate a conceal config from `conceal_defs`, do that by running `./gen_conceal.awk conceal_defs`. To setup plugins, open vim and run `:PlugInstall`. You'll also need to generate a conceal config from `conceal_defs`, do that by running `./gen_conceal.awk conceal_defs > conceal.vim`.

View File

@ -2,7 +2,7 @@
BEGIN { BEGIN {
c = "\"" c = "\""
print c " Conceal character file generated by awk." print c " Conceal character file generated by awk."
print c " Do not edit this manually." print c " Do not edit this manually."
} }
@ -10,7 +10,7 @@ BEGIN {
{ {
# Ignore all whitespace # Ignore all whitespace
gsub("\\s", "", $0) gsub("\\s", "", $0)
# Skip comments # Skip comments
if (substr($0,0,1) == "#") { next } if (substr($0,0,1) == "#") { next }
# Skip blank lines # Skip blank lines
@ -19,10 +19,9 @@ BEGIN {
# Extract args # Extract args
p = index($0, "|") p = index($0, "|")
conceal = substr($0,0,p-1) conceal = substr($0,0,p-1)
keyword = substr($0,p+1) string = substr($0,p+1)
# Vim config output # Vim config output
print ":syntax match keyword \"\\<" keyword "\\>\" conceal cchar=" conceal print ":syntax match keyword \"\\<" string "\\>\" conceal cchar=" conceal
}
}