summaryrefslogtreecommitdiffstats
path: root/autoload/terraform.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2021-07-08 11:54:15 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2021-07-08 11:54:15 +0200
commitc794f186c0a618d2d4cdd5445d9ff20e6f640762 (patch)
tree11e6b01bac01b0ec694c8fa5c574870f5e268182 /autoload/terraform.vim
parent4f5388350be1052f610b830c8fce8fbc17370ec6 (diff)
downloadvim-polyglot-c794f186c0a618d2d4cdd5445d9ff20e6f640762.tar.gz
vim-polyglot-c794f186c0a618d2d4cdd5445d9ff20e6f640762.zip
Update
Diffstat (limited to 'autoload/terraform.vim')
-rw-r--r--autoload/terraform.vim11
1 files changed, 0 insertions, 11 deletions
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',