i am trying to write a vim abbreviation to create a template program in cI have given the abbreviation as below in the .vimrcabbr main #include<stdio.h>\^M#include<string.h>\^M#include<math.h>\^M#include<stdlib.h>\^M\^Mint main() {\^M int T, N;\^M scanf(%d, &T);\^M while(T-- > 0) {\^M     scanf(%d, &N);\^M }\^M return 0;\^M}When I type the word main, the abbreviation is coming into effect, but it's not indented properly. I tried with just spaces/just tabs/combination but nothing gets the code indented perfectly.  Why?Any help?Update: I tried with  abbr main #include<stdio.h>\<CR>#include<string.h>\<CR>\<CR>int main() {\<CR>int T, N;\<CR>scanf(%d, &T);\<CR>while(T-- > 0) {\<CR>scanf(%d, &N);\<CR>}\<CR>return 0;\<CR>}It leads to the same result. Can anyone please show me how to add a multi-line abbreviation with proper indentation?
vim issue with tab/space in multi-line abbreviations in vimrc
vim;vimrc