let mapleader=" " let maplocalleader="\\" set colorcolumn=+1 set expandtab set ignorecase set iskeyword+=-,ä,Ä,ö,Ö,ü,Ü,ß set linebreak set list listchars=tab:»\ ,trail:·,nbsp:~ set number set relativenumber set scrolloff=7 set shell=/bin/sh set shiftwidth=2 set shortmess=FfmnxoTIc set signcolumn=no set smartcase set softtabstop=2 set spelllang=en_us,de_20 set spellfile=~/.local/share/nvim/site/spell/till.utf-8.add set splitbelow set splitright set tabstop=2 set updatetime=300 let g:netrw_liststyle = 3 let g:netrw_fastbrowse = 0 nnoremap Y y$ nnoremap gF :edit nnoremap gx :! xdg-open nnoremap :bnext nnoremap :bnext nnoremap Q :bdelete nnoremap h nnoremap j nnoremap k nnoremap l nnoremap :hide nnoremap m :make nnoremap M :!home-manager switch tnoremap xnoremap il g_o^ onoremap il :normal vil xnoremap al $o0 onoremap al :normal val xnoremap i% GoggV onoremap i% :normal vi% function CreateNote(title) execute "file ~/notes/" . strftime("%Y-%m-%d") . "_" . join(split(tolower(a:title)), "_") . ".md" execute "set ft=markdown" execute "normal! i" . a:title execute "normal V\yaml_note\" endfunction