Beruflich Dokumente
Kultur Dokumente
set showmatch " Show matching Brackets When text indicator is over them
set mat=1 " How many seconds to blink when matching brackets
"set cursorline " Highlight current line.
set noswapfile
set nobackup " Don't make a backup before overwriting a file.
set smartindent
set autoindent
set tabstop=4 " Global tab width.
set shiftwidth=4
set softtabstop=4
set expandtab " Use spaces instead of tabs.
set ttyfast
set background=dark
set encoding=utf-8
set showmode " Display the mode you're in.
set ruler " Show cursor position.
set laststatus=1 " Show the status line all the time
set numberwidth=1
set autochdir " Automatically use current file's directory as the working
directory.
if &term == "screen-256color"
set t_RV=[>c
endif
augroup autosourcing
autocmd!
autocmd BufWritePost .vimrc source % " Automatically source the vimrc file.
augroup END
function! InsertTabWrapper()
" Multipurpose Tab key
" Indent if we're at the beginning of a line.Else do tab completion.
let col = col(".") - 1
if !col || getline(".")[col - 1] !~ '\k'
return "\<tab>"
else
return "\<C-n>"
endfunction