From 2c66618b1dc4a01aa7e32a06062ba6e2076b8e2a Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Sun, 6 Sep 2020 22:32:08 -0400 Subject: [PATCH] vim: add yaml indentation --- .config/nixpkgs/home.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/nixpkgs/home.nix b/.config/nixpkgs/home.nix index 7449900..3356f93 100644 --- a/.config/nixpkgs/home.nix +++ b/.config/nixpkgs/home.nix @@ -249,9 +249,7 @@ set wildmenu " Remember line number - if has("autocmd") - au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif - endif + au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif " Search down into subfolders " Provides tab-completion for all file-related tasks @@ -280,6 +278,9 @@ noremap y "+y noremap p "+p + " yaml indentation + au FileType yaml setlocal ts=2 sts=2 sw=2 expandtab + " Python indentation au BufNewFile,BufRead *.py set tabstop=4 softtabstop=4 shiftwidth=4 textwidth=79 expandtab autoindent fileformat=unix let python_highlight_all=1