-- set leader and locleader before setting any maps vim.g.mapleader = ' ' vim.g.maplocalleader = '\\' -- set up packer and all the plugins require('plugins') -- old config still to luaify vim.cmd([[ " filetype magic autocmd BufRead,BufNewFile *.nasm set filetype=nasm " langmap russian set langmap=ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯ;ABCDEFGHIJKLMNOPQRSTUVWXYZ,фисвуапршолдьтщзйкыегмцчня;abcdefghijklmnopqrstuvwxyz " Incrementally show effects of :s, :smagic, :snomagic set icm=split set number relativenumber set nobackup nowritebackup set noswapfile " autosmartident set ai set si set tabstop=4 set shiftwidth=4 set softtabstop=4 set expandtab " arrows for visual line navigation 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 " 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!" " help is quite annoying when you miss esc map imap " do not conceal stuff set conceallevel=0 set foldlevel=999 " Whitespace highlight highlight RedundantSpaces ctermbg=red guibg=red match RedundantSpaces /\s\+\%#\@