diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..a1027e5 --- /dev/null +++ b/.editorconfig @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index 7bb05ee..729d37d 100644 --- a/README.md +++ b/README.md @@ -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`. \ No newline at end of file +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`. \ No newline at end of file diff --git a/gen_conceal.awk b/gen_conceal.awk index ed5ca55..9ce8ab7 100755 --- a/gen_conceal.awk +++ b/gen_conceal.awk @@ -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 +} \ No newline at end of file