set nocompatible set showcmd set rnu syntax on filetype on filetype plugin on filetype indent on colorscheme onedark hi Comment guifg=#b7ffbd ctermfg=102 hi Normal guifg=#eeeeee guibg=#00000ee let g:airline#extensions#tabline#enabled = 1 let g:airline_powerline_fonts = 1 " --BACKUP set backup set backupdir=~/.vim/backup/ set writebackup set backupcopy=yes au BufWritePre * let &bex = '@' . strftime("%F.%H:%M") " --Display set mouse=ar set title set number "Line numbers set ruler set wrap set scrolloff=3 set lazyredraw set termguicolors set foldmethod=indent set foldlevelstart=8 "Don't fold automatically unless really nested " --Search set ignorecase set smartcase set incsearch set hlsearch " --Tab set tabstop=4 set shiftwidth=4 set softtabstop=0 " --Beep set visualbell set noerrorbells set backspace=indent,eol,start set hidden " --Svelte files are essentially HTML autocmd BufRead,BufNewFile *.svelte set filetype=html " --My cute shortcuts noremap // :nohls inoremap jj noremap ,q :wqa noremap ,w :edit noremap ,e :Files noremap ,r :so ~/.vimrc noremap ,t :CocCommand explorer --toggle noremap ,d :bp:bd # noremap ,f :Rg noremap ,h :help noremap :bn noremap :bp autocmd FileType cpp noremap ,c :!g++ autocmd FileType cpp map ,cf ,c"%" autocmd FileType cpp map ,r ,c-o a ;./a;rm a autocmd FileType cpp map ,rf ,r"%"