From 975f41b4bef463ffda61920d01677a3a0d57657b Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 2 May 2018 08:03:38 +0200 Subject: pkgs/vim: Don't autoalign Ledger files anymore I've introduced this in 45aab49b33ab2cd4c327b996d6924f104b038193. It turns out that autocomplete_and_align when leaving insert mode is more annoying than useful, because first of all I use hledger and it's syntax additions and second I also use different currencies, which then get aligned and autocompleted into "something with EUR". Signed-off-by: aszlig --- pkgs/aszlig/vim/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkgs/aszlig/vim') diff --git a/pkgs/aszlig/vim/default.nix b/pkgs/aszlig/vim/default.nix index 11063702..95db41b2 100644 --- a/pkgs/aszlig/vim/default.nix +++ b/pkgs/aszlig/vim/default.nix @@ -356,8 +356,7 @@ let au FileType gitcommit setlocal textwidth=72 au FileType docbk setlocal tabstop=2 shiftwidth=2 expandtab - " Autocomplete/align Ledger lines after leaving insert mode - au FileType ledger au InsertLeave * call ledger#autocomplete_and_align() + " Enable folding for Ledger files au FileType ledger set fdm=syntax " Do not sleuth these file types! -- cgit 1.4.1