Sample Header Ad - 728x90

Vim autoindent stops indenting multiline array in bash after 20 lines

1 vote
1 answer
214 views
Given this code: #!/bin/bash _DATABASES=( "secretX" "secretmin" "secretcopyijui" "secretcroma" "secretdemo" "secretdicopy" "secretflashcolo" "secretmdat" "secretneton" "secretprintshar" "secretrealjet" "secretsolumax" "secretunicopia" "secretworddigit" "secretducao" "secrette" "secrette_app" "secretanopecanh" "secretx_ead" "secretx_site" "secretdroppy" "secret" ) When i do gg=G on vim, then the code be like this: #!/bin/bash _DATABASES=( "secretX" "secretmin" "secretcopyijui" "secretcroma" "secretdemo" "secretdicopy" "secretflashcolo" "secretmdat" "secretneton" "secretprintshar" "secretrealjet" "secretsolumax" "secretunicopia" "secretworddigit" "secretducao" "secrette" "secrette_app" "secretanopecanh" "secretx_ead" "secretx_site" "secretdroppy" "secret" ) Why? With smaller arrays everything works gracefully, but when it's an array with more than 20 elements, this happens... Tested with other language(JS, C++, PHP), no similiar behaviour happened. Info: Vim 7.4.52 No .vimrc
Asked by Yuri Santos (13 rep)
Aug 2, 2019, 11:00 PM
Last activity: Aug 3, 2019, 12:32 PM