commit 1cee7301cf2e37ec58a483676bc3957a11423535 Author: Siphalor Date: Fri Jul 10 10:04:12 2020 +0200 Initial commit diff --git a/_vimrc b/_vimrc new file mode 100644 index 0000000..4bca9fa --- /dev/null +++ b/_vimrc @@ -0,0 +1,129 @@ +" An example for a vimrc file. +" +" Maintainer: Bram Moolenaar +" Last change: 2016 Jul 28 +" +" To use it, copy it to +" for Unix and OS/2: ~/.vimrc +" for Amiga: s:.vimrc +" for MS-DOS and Win32: $VIM\_vimrc +" for OpenVMS: sys$login:.vimrc + +" When started as "evim", evim.vim will already have done these settings. +if v:progname =~? "evim" + finish +endif + +" Get the defaults that most users want. +source $VIMRUNTIME/defaults.vim + +if has("vms") + set nobackup " do not keep a backup file, use versions instead +else + set backup " keep a backup file (restore to previous version) + if has('persistent_undo') + set undofile " keep an undo file (undo changes after closing) + endif +endif + +if &t_Co > 2 || has("gui_running") + " Switch on highlighting the last used search pattern. + set hlsearch +endif + +" Only do this part when compiled with support for autocommands. +if has("autocmd") + + " Put these in an autocmd group, so that we can delete them easily. + augroup vimrcEx + au! + + " For all text files set 'textwidth' to 78 characters. + autocmd FileType text setlocal textwidth=78 + + augroup END + +else + + set autoindent " always set autoindenting on + +endif " has("autocmd") + +" Add optional packages. +" +" The matchit plugin makes the % command work better, but it is not backwards +" compatible. +if has('syntax') && has('eval') + packadd matchit +endif + +set rtp+=$HOME/vimfiles + +let g:load_doxygen_syntax=1 + +execute pathogen#infect() + +colorscheme atomified + +set langmenu=en_US +let $LANG = 'en_US' +source $VIMRUNTIME/delmenu.vim +source $VIMRUNTIME/menu.vim + +set noundofile + +set ru +set nu + +set dir=$HOME/vimstuff/swap//,. +set backupdir=$HOME/vimstuff/backup//,. +set nobackup +set undodir=$HOME/vimstuff/undo//,. +set undofile + +set encoding=utf-8 + +set tabstop=4 +set shiftwidth=4 +set softtabstop=0 noexpandtab +noh + +set shortmess=filnxtToO + +"set statusline+=%b\ 0x%B +"set laststatus=2 + +command! W w +command! DelThis :call delete(expand('%')) | bdelete! + +" Filetypes +au BufRead,BufNewFile *.z80 set filetype=z8a + +nmap O +nmap o +map >> +map << +map :TOhtml:wq:n +map :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">" . " FG:" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"fg#") +map :!build make +map :!build run +map :so $MYVIMRC +"imap {} {}O +imap ยงยง + +for gcommand in ['Git', 'Gcd', 'Glcd', 'Gstatus', 'Gcommit', 'Gmerge', 'Gpull', + \ 'Grebase', 'Gpush', 'Gfetch', 'Grename', 'Gdelete', 'Gremove', 'Gblame', 'Gbrowse', + \ 'Ggrep', 'Glgrep', 'Glog', 'Gllog', 'Gedit', 'Gsplit', 'Gvsplit', 'Gtabedit', 'Gpedit', + \ 'Gread', 'Gwrite', 'Gwq', 'Gdiff', 'Gsdiff', 'Gvdiff', 'Gmove'] + exe 'cnoreabbrev g'.gcommand[1:].' '.gcommand +endfor + +set termguicolors +set guifont=Consolas:h10 +set guioptions-=T +set guioptions-=m +set guioptions-=r +set guioptions-=R +set guioptions-=L +set guioptions-=l +set guioptions-=b