Vim, 8 spaces after { <ENTER> -


i need use 4 spaces indent in project i'm working in. .vimrc:

"autouzupelnianie nawiasow "inoremap { {<cr>}<c-o>o inoremap { {}<left> inoremap [ []<left> inoremap ( ()<left>  syntax on  set autoindent set number "pokazywanie numerow lini set modifiable set write filetype indent on "wlaczenie rozpoznawania wciec                                                                                                                 set showmatch "nawiasy                                                                                                                                             "backup                                                                                                                                                           set backup                                                                                                                                                        set backupdir=/home/mat/backup/vim/                                                                                                                                let g:html_use_css="1" "htmle uzywaja css                                                                                                                          "wrap                                                                                                                                                             set linebreak                                                                                                                                                     set wrap                                                                                                                                                          set nolist                                                                                                                                                         "tabulacja                                                                                                                                                        "                                                                                                                                                                 "set smartindent                                                                                                                                                  set tabstop=4                                                                                                                                                     set expandtab                                                                                                                                                     set shiftwidth=4                                                                                                                                                  set softtabstop=4                                                                                                                                                  "plugin snippmate                                                                                                                                                 filetype plugin on    

but when hit { , hit enter i've got:

{         <8 spaces> 

depending on filetype, filetype plugin may overriding vimrc settings. check in $vimruntime/ftplugin/{filetype}.vim , $vimruntime/after/ftplugin/{filetype}.vim. $vimruntime/indent/{filetype}.vim , after version of that.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -