" vim: filetype=vim " ============================== " Universal (Works on any OS... probably) Configuration " ============================== " ----- Vim Initial Config set encoding=UTF-8 set hls set number set ignorecase set smartcase set mouse=a set background=dark highlight VertSplit cterm=NONE ctermbg=0 ctermfg=0 hi! EndOfBuffer ctermbg=8 ctermfg=8 syntax on filetype indent plugin on map :NERDTreeToggle " ----- Mapping " Norm but in shortcut vnoremap . :normal . " Map ctrl + u as U noremap U " Map U as redo (ctrl + r) noremap U " Yank and Put to/from clipboard/primary noremap "+y noremap "+p noremap "+y noremap "+P " NERDComment thing map gcc vmap gc imap gc " ----- 'vim -b' = edit binary using xxd-format! augroup Binary au! au BufReadPre *.bin let &bin=1 au BufReadPost *.bin if &bin | %!xxd au BufReadPost *.bin set ft=xxd | endif au BufWritePre *.bin if &bin | %!xxd -r au BufWritePre *.bin endif au BufWritePost *.bin if &bin | %!xxd au BufWritePost *.bin set nomod | endif augroup END " ----- python for vim autocmd BufEnter *.py set ai sw=4 ts=4 sta et fo=croql " ----- Auto refresh vimrc augroup myvimrc au! au BufWritePost vimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif au BufWritePost vim_nix so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif au BufWritePost vim_plug so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif au BufWritePost vim_uni so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif au BufWritePost vim_win so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif augroup END " ----- Discord Rich Presences API let g:vimsence_client_id = '733622032901603388' let g:vimsence_small_text = 'Neovim' let g:vimsence_small_image = 'nvim' " let g:vimsence_large_image = 'ts' let g:vimsence_editing_details = 'Editing {}' let g:vimsence_editing_state = 'Workspace: {}' let g:vimsence_file_explorer_text = 'In NERDTree' let g:vimsence_file_explorer_details = 'Looking for files'