diff --git a/nvim/init.vim b/nvim/init.vim new file mode 100644 index 0000000..115915d --- /dev/null +++ b/nvim/init.vim @@ -0,0 +1,34 @@ +"filetype plugin on +syntax on +set number +set nowrap +set wildmode=longest,list +set colorcolumn=80 +:let $NVIM_TUI_ENABLE_TRUE_COLOR=1 + +" Indentation +set smartindent +set tabstop=4 +set softtabstop=4 +set shiftwidth=4 +set expandtab + +" Search +set incsearch +set hlsearch +set ignorecase +set smartcase + +" Whitespaces +set listchars=tab:>-,trail:ยท +set list +:nnoremap :let _s=@/:%s/\s\+$//e:let @/=_s:nohl + + +" Break lines for tex-files +augroup WrapLineInTeXFile + autocmd! + autocmd FileType tex setlocal wrap + autocmd FileType tex setlocal linebreak + autocmd FileType tex setlocal nonumber +augroup END