.vimrc (916B)
1 inoremap <Esc> <Nop> 2 inoremap <special> fd <Esc> 3 4 set tabstop=8 5 set shiftwidth=8 6 set ai 7 set hlsearch 8 set colorcolumn=80 9 set nowrap 10 set hidden 11 12 hi ColorColumn ctermbg=8 13 14 map Y y$ 15 16 syntax on 17 18 set clipboard=unnamed 19 20 let mapleader = "\\" 21 let maplocalleader = "\\" 22 nmap <Leader>xda ma:%s/\s\+$//g<CR>`a 23 24 nmap <C-q> :q<CR> 25 nmap <C-x> :x<CR> 26 nmap <C-s> ^D 27 nmap <C-n> :tn<CR> 28 nmap <C-p> :tp<CR> 29 30 autocmd FileType go autocmd BufWritePre <buffer> execute "normal! mz:mkview\<esc>:%!fmtsafe gofmt\<esc>:loadview\<esc>`z" 31 autocmd FileType go set wrap rnu 32 autocmd FileType rust autocmd BufWritePre <buffer> execute "normal! mz:mkview\<esc>:%!fmtsafe rustfmt\<esc>:loadview\<esc>`z" 33 "autocmd filetype html set sw=2 ts=2 expandtab 34 35 autocmd BufEnter,BufNew *.nix set sw=2 ts=2 expandtab 36 autocmd BufEnter,BufNew *.gmi set wrap linebreak 37 38 au BufWritePost,FileWritePost ~/.Xdefaults,~/.Xresources silent! !xrdb -load % >/dev/null 2>&1