Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function! DefaultIndent()
- " Use spaces instead of tabs
- set expandtab
- " Be smart when using tabs ;)
- set smarttab
- " 1 tab == 4 spaces
- set shiftwidth=4
- set tabstop=4
- set ai "Auto indent
- set si "Smart indent
- set cindent
- set cinoptions=(0,:0,l1,t0
- endfunction
- function! LibvirtCIMIndent()
- :call DefaultIndent()
- set shiftwidth=8
- set tabstop=8
- set softtabstop=8
- endfunction
- function! EDCIndent()
- set tabstop=3
- set shiftwidth=3
- set softtabstop=3
- set nocindent
- "set syntax=edc
- endfunction
- function! EIndent()
- :call DefaultIndent()
- set tabstop=8
- set shiftwidth=4
- set softtabstop=8
- set cinoptions=>5n-2f0^-2{2(0W1st0
- endfunction
- call DefaultIndent()
- map <F6> :call DefaultIndent() <BAR> echo "Default Mode"<CR>
- map <F7> :call LibvirtCIMIndent() <BAR> echo "Libvirt CIM Mode"<CR>
- map <F8> :call EDCIndent() <BAR> echo "EDC Mode"<CR>
- map <F9> :call EIndent() <BAR> echo "E Mode"<CR>
Advertisement
Add Comment
Please, Sign In to add comment