" SCRIPT NAME:
" vimrc
"
" AUTHOR:
" Severin Kaderli <severin@kaderli.dev>
"
" DESCRIPTION:
" This is my Vim configuration.
"
" USAGE:
" This file is automatically used by Vim.

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Directories                                                                 "
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set undodir=$XDG_CACHE_HOME/vim/undo
set directory=$XDG_CACHE_HOME/vim/swap
set backupdir=$XDG_CACHE_HOME/vim/backup
set viminfo+=n$XDG_CACHE_HOME/vim/viminfo
set runtimepath=$XDG_CONFIG_HOME/vim,$VIMRUNTIME,$XDG_CONFIG_HOME/vim/after

" Enable syntax highlighting
syntax on

set encoding=utf-8
set virtualedit=onemore

" Space settings
set tabstop=4
set softtabstop=4
set expandtab


" Enable line numbers
set number

" Show command in bottom bar
set showcmd

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Search                                                                      "
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Search while characters are entered
set incsearch

" Highlight search results"
" set hlsearch

" Highlight the current line
" set cursorline

filetype on
filetype indent on
filetype plugin on

:imap jk <Esc>

