Misc changes
parent
4f0c720ad6
commit
f5cdff4a86
|
@ -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
|
|
@ -1,3 +1,3 @@
|
|||
# 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`.
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
BEGIN {
|
||||
c = "\""
|
||||
|
||||
|
||||
print c " Conceal character file generated by awk."
|
||||
print c " Do not edit this manually."
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ BEGIN {
|
|||
{
|
||||
# Ignore all whitespace
|
||||
gsub("\\s", "", $0)
|
||||
|
||||
|
||||
# Skip comments
|
||||
if (substr($0,0,1) == "#") { next }
|
||||
# Skip blank lines
|
||||
|
@ -19,10 +19,9 @@ BEGIN {
|
|||
# Extract args
|
||||
p = index($0, "|")
|
||||
conceal = substr($0,0,p-1)
|
||||
keyword = substr($0,p+1)
|
||||
string = substr($0,p+1)
|
||||
|
||||
# Vim config output
|
||||
print ":syntax match keyword \"\\<" keyword "\\>\" conceal cchar=" conceal
|
||||
|
||||
}
|
||||
print ":syntax match keyword \"\\<" string "\\>\" conceal cchar=" conceal
|
||||
|
||||
}
|
Loading…
Reference in New Issue