Skip to content
Snippets Groups Projects
  • Michael S. Tsirkin's avatar
    692e587f
    qemu: add .exrc · 692e587f
    Michael S. Tsirkin authored
    
    I've been using this to get correct indenting with vim
    in qemu for a while, but it's a bit easier if we
    put the settings in the central place.
    Note that
    1. you still need to enable 'exrc' and 'secure'
       options in your vimrc for these settings to take effect.
    2. you can create a .vimrc file if 'exrc' is on but there's
       need to bypass this configuration.
    
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    692e587f
    History
    qemu: add .exrc
    Michael S. Tsirkin authored
    
    I've been using this to get correct indenting with vim
    in qemu for a while, but it's a bit easier if we
    put the settings in the central place.
    Note that
    1. you still need to enable 'exrc' and 'secure'
       options in your vimrc for these settings to take effect.
    2. you can create a .vimrc file if 'exrc' is on but there's
       need to bypass this configuration.
    
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
.exrc 220 B
"VIM settings to match QEMU coding style.  They are activated by adding the
"following settings (without the " symbol) as last two lines in $HOME/.vimrc:
"set secure
"set exrc
set expandtab
set shiftwidth=4
set smarttab