steven woody wrote:
i use vim on both linux and windows. but i found their indentation behavior a little differently.say i was coding a c program on the below line void foo_fun( int p1 then i press return on linux, the cursor come to a pleasant position, that became, void foo_fun( int p1 , int p2 ); but when i was on windows and do the same thing, it became void foo_fun( int p1 , int p2 ); and i dont like that. i compared .vimrc files on linux and windows, but got nothing. so i am wandering whether someone here got know a setting which helps. thanks.
there are some options which might be relevant, like 'cindent' and 'indentexpr'. You might also want to check ":filetype" (without arguments) to see if filetype-related indentation is or isn't "on" on both sides.
Best regards, Tony.
