if has('nvim') call plug#begin(stdpath('data') . '/plugged') else set nocompatible filetype plugin indent on syntax enable call plug#begin('~/.vim/plugged') endif " insert images into markdown automagically Plug 'ferrine/md-img-paste.vim' "Better syntax Plug 'rust-lang/rust.vim' Plug 'LnL7/vim-nix' Plug 'cespare/vim-toml' Plug 'JuliaEditorSupport/julia-vim' " Improved default colorscheme Plug 'jeffkreeftmeijer/vim-dim' call plug#end() colorscheme dim " Incrementally show effects of :s, :smagic, :snomagic if has('nvim') set icm=split endif " disable TeX commands concealing let g:tex_conceal = '' " space is our leader! let mapleader = "\" let maplocalleader = "\\" set number relativenumber set nobackup set noswapfile set guicursor= " autosmartident set ai set si set tabstop=4 set shiftwidth=4 set softtabstop=4 set noexpandtab " arrows for visual line identation imap gk imap gj nmap gk nmap gj vmap gk vmap gj set history=999 set undolevels=999 " Copy to clipboard vnoremap y "+y nnoremap Y "+yg_ nnoremap y "+y nnoremap yy "+yy " Paste from clipboard nnoremap p "+p nnoremap P "+P vnoremap p "+p vnoremap P "+P set updatetime=107 " markdown let g:markdown_syntax_conceal = 0 let g:markdown_fenced_languages = ['c', 'html', 'python', 'scheme', 'yaml', 'sh'] " disable modelines set nomodeline " change tab completion to more bash-like set wildmode=longest:full,list:full " U is quite useless nnoremap U :echo "NOPE!" " do not conceal stuff set conceallevel=0 " insert images into markdown automagically autocmd FileType markdown nmap p :call mdip#MarkdownClipboardImage() let g:mdip_imgdir = 'static' let g:mdip_imgname = 'image' set laststatus=1