I use the following settings in my .vimrc: set softtabstop=4 set shiftwidth=4 set tabstop=4 set expandtab
On Mon, Dec 22, 2008 at 1:57 PM, Erik Hahn <[email protected]> wrote: > On Mon, Dec 22, 2008 at 01:22:17PM -0800, Oliver Zheng wrote: >> >> Hi, >> >> Is that possible? It solves the tab/space indentation debate, but how >> is this done in Vim? For example, the code: >> >> int main() { >> <tab>if (1) >> <tab><tab>int a = test( >> <tab><tab>.............param1, >> <tab><tab>.............param2, >> <tab><tab>............); >> } >> >> would look perfectly fine no matter what tabwidth is, in whatever >> editor. How do I enable this? > > Check out this [1] script. > > 1. http://www.vim.org/scripts/script.php?script_id=231 > > -- > v4sw5RUYhw2ln3pr5ck0ma2u7Lw3+2Xm0l6/7Gi2e2t3b6AKMen5+7a16s0Sr1p-8.12/-6.56g6OR > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
