From e8d1ae12c7748f4d775abf3a2d0241963606f9ef Mon Sep 17 00:00:00 2001 From: druckdev <63563978+druckdev@users.noreply.github.com> Date: Mon, 26 Oct 2020 13:36:27 +0100 Subject: [PATCH] vim:ftplugin: Add python and xdefaults --- .config/vim/ftplugin/python.vim | 6 ++++++ .config/vim/ftplugin/xdefaults.vim | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 .config/vim/ftplugin/python.vim create mode 100644 .config/vim/ftplugin/xdefaults.vim diff --git a/.config/vim/ftplugin/python.vim b/.config/vim/ftplugin/python.vim new file mode 100644 index 0000000..a6bacab --- /dev/null +++ b/.config/vim/ftplugin/python.vim @@ -0,0 +1,6 @@ +" Use 4 spaces for indentation +setlocal tabstop=4 +setlocal shiftwidth=0 +setlocal expandtab +" Delete all 4 spaces when pressing backspace +setlocal smarttab diff --git a/.config/vim/ftplugin/xdefaults.vim b/.config/vim/ftplugin/xdefaults.vim new file mode 100644 index 0000000..77ff080 --- /dev/null +++ b/.config/vim/ftplugin/xdefaults.vim @@ -0,0 +1,2 @@ +" Update resource database automatically. +autocmd BufWritePost * !xrdb %