From c794f186c0a618d2d4cdd5445d9ff20e6f640762 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 8 Jul 2021 11:54:15 +0200 Subject: Update --- autoload/terraform.vim | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'autoload/terraform.vim') diff --git a/autoload/terraform.vim b/autoload/terraform.vim index 324b978d..852b261f 100644 --- a/autoload/terraform.vim +++ b/autoload/terraform.vim @@ -35,17 +35,6 @@ function! terraform#fmt() abort call winrestview(curw) endfunction -function! terraform#align() abort - let p = '^.*=[^>]*$' - if exists(':Tabularize') && getline('.') =~# '^.*=' && (getline(line('.')-1) =~# p || getline(line('.')+1) =~# p) - let column = strlen(substitute(getline('.')[0:col('.')],'[^=]','','g')) - let position = strlen(matchstr(getline('.')[0:col('.')],'.*=\s*\zs.*')) - Tabularize/=.*/l1 - normal! 0 - call search(repeat('[^=]*=',column).'\s\{-\}'.repeat('.',position),'ce',line('.')) - endif -endfunction - function! terraform#commands(ArgLead, CmdLine, CursorPos) abort let commands = [ \ 'init', -- cgit v1.2.3