ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
To indentation: I think that is configurable and language specific, so first you need to be sure if the correct language is detected/selected and also probably need to be configured. See here: https://vim.fandom.com/wiki/Indenting_source_code
I see GVIM identify the file as TCL.
I tried also to set the syntax as tcl but still, the first line after the foreach/if shifted by 1 TAB and the other by 2 TABS.
the below command also tried and not achieved good results.
The problem happen also when I'm writing script and press Enter to get a new line.
I see that the first line shifted by 1 Tab and after additional Enter it shifted by 2 Tabs.
Means, its configuration problem but how can I identify and fix it?
I tried to load gvim without any external configuration (.gvim.rc)
but still I get the same behaivor
Code:
foreach c [get_ports $kluku] {
set a "kuku"
set y "popo"
set uuu "ioioi"
}
Yes, but as I wrote it works for me, so most probably your configuration is different from mine. You can try a different gvim installation or reinstall too (and purge .vim*), but probably would be easier to find the reason... Unfortunately it is not that simple.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.