" Use VIM improved mode set nocompatible " Disable VIM's startup message set shortmess+=I " Number of remembered undo steps set undolevels=1000 set runtimepath^=$XDG_CONFIG_HOME/vim set runtimepath+=$XDG_CONFIG_HOME/vim/after " Set environment variables for convenient usage let $RC = expand('$XDG_CONFIG_HOME/vim/vimrc') let $RTP=split(&runtimepath, ',')[0] " Detect the file's type and load the corresponding plugin and indent files filetype plugin indent on " Enable syntax highlighting syntax on " Configure tab behavior set expandtab " Insert spaces instead of tab characters set tabstop=4 " Width of an existing tab character set shiftwidth=4 " Width of one >> or << indent step set softtabstop=4 " Width inserted/removed by and set shiftround " Round indents to a multiple of shiftwidth set autoindent " Keep the previous line's indent on a new line vnoremap >gv vnoremap