From e0cfa9bd225ec83d1c876d8de10498bbf1306775 Mon Sep 17 00:00:00 2001 From: winston Date: Sat, 30 Jul 2022 21:21:08 +0200 Subject: [PATCH] chore: add `vim:` preambles --- .chezmoi.yaml.tmpl | 1 + dot_Xmodmap | 1 + dot_gitconfig | 2 +- dot_ideavimrc | 2 +- dot_zprofile.tmpl | 2 ++ dot_zshenv | 2 ++ dot_zshrc | 2 +- 7 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.chezmoi.yaml.tmpl b/.chezmoi.yaml.tmpl index d3c356a..ae3ef76 100644 --- a/.chezmoi.yaml.tmpl +++ b/.chezmoi.yaml.tmpl @@ -1,3 +1,4 @@ +# vim:ft=yaml:fenc=utf-8:fdm=marker encryption: gpg gpg: diff --git a/dot_Xmodmap b/dot_Xmodmap index dafbd78..dd042c5 100644 --- a/dot_Xmodmap +++ b/dot_Xmodmap @@ -1,2 +1,3 @@ +! vim:ft=xmodmap:fenc=utf-8:fdm=marker pointer = 1 2 3 5 4 7 6 8 9 10 11 12 clear Lock diff --git a/dot_gitconfig b/dot_gitconfig index 15896bc..1e3e2df 100644 --- a/dot_gitconfig +++ b/dot_gitconfig @@ -1,4 +1,4 @@ -; vim:fenc=utf-8:ft=gitconfig +# vim:ft=gitconfig:fenc=utf-8:fdm=marker ; identity & authentication [include] diff --git a/dot_ideavimrc b/dot_ideavimrc index 8c9e2d5..1e5338b 100644 --- a/dot_ideavimrc +++ b/dot_ideavimrc @@ -1,3 +1,4 @@ +" vim:ft=vim:fenc=utf-8:fdm=marker """ map leader to ---------------------------------------------------- let mapleader=" " @@ -56,4 +57,3 @@ nnoremap sethandler a:vim sethandler a:vim sethandler n:ide - diff --git a/dot_zprofile.tmpl b/dot_zprofile.tmpl index 176ed50..6a9b318 100644 --- a/dot_zprofile.tmpl +++ b/dot_zprofile.tmpl @@ -1,3 +1,5 @@ +# vim:ft=zsh:fenc=utf-8:fdm=marker + export EDITOR=nvim export TERMINAL=wezterm {{ if eq .chezmoi.os "darwin" -}} diff --git a/dot_zshenv b/dot_zshenv index cf6d5bd..7f61549 100644 --- a/dot_zshenv +++ b/dot_zshenv @@ -1,3 +1,5 @@ +# vim:ft=zsh:fenc=utf-8:fdm=marker + ### COMMON ### export EDITOR=nvim diff --git a/dot_zshrc b/dot_zshrc index cdf8735..372e321 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -1,4 +1,4 @@ -# vim:fileencoding=utf-8:foldmethod=marker +# vim:ft=zsh:fenc=utf-8:fdm=marker # load starship eval "$(starship init zsh)"