09 November 2020

Vi - How to Automatic Indent?

 Vi - How to Automatic Indent?

Windows

In Vim folder, create a text file named '_vimrc' with the following contents -


filetype plugin indent on

autocmd FileType html setlocal shiftwidth=2 tabstop=2

autocmd FileType python setlocal expandtab shiftwidth=4 softtabstop=4

No comments:

Post a Comment