" bootstrap vim-plug automagically if empty(glob('~/.local/share/nvim/site/autoload/plug.vim')) silent !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim autocmd VimEnter * PlugInstall --sync|source $MYVIMRC endif call plug#begin('~/.local/share/nvim/plugged') " insert images into markdown automagically Plug 'ferrine/md-img-paste.vim' " Some config/whitespace automation Plug 'tpope/vim-sleuth' Plug 'ntpeters/vim-better-whitespace' " Interface Plug 'tpope/vim-vinegar' Plug 'jeffkreeftmeijer/vim-dim' "Better syntax Plug 'lervag/vimtex', {'for': 'tex'} Plug 'vivien/vim-linux-coding-style' Plug 'rust-lang/rust.vim', {'for': 'rust'} Plug 'dag/vim-fish', {'for': 'fish'} Plug 'LnL7/vim-nix', {'for': 'nix'} Plug 'chikamichi/mediawiki.vim', { 'for' : 'wiki' } Plug 'cespare/vim-toml' Plug 'JuliaEditorSupport/julia-vim', { 'for' : 'julia' } call plug#end() colorscheme dim " disable TeX commands concealing let g:tex_conceal = '' " space is our leader! let mapleader = "\" let maplocalleader = "\\" set number 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 " Activate linux coding style helper only in certain dirs let g:linuxsty_patterns = ["/usr/src", "/linux", "~/git/linux", "~/fun/linux", "~/devel/linux"] " 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 " I cannot spell set spelllang=en,ru,de nnoremap :set spell! inoremap :set spell! set spellsuggest+=10 " 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