Last active
May 1, 2026 01:05
-
-
Save hymkor/7d8b21311f5dd8410dab72a62bc2be47 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " scriptencoding utf-8 | |
| set smartindent | |
| set sw=4 ts=8 ai nobk et | |
| set textwidth=0 | |
| set noswapfile | |
| set nobackup | |
| set noundofile | |
| set directory=$TEMP | |
| "set colorcolumn=80 | |
| set nrformats=hex | |
| set nofixeol | |
| set nomodeline | |
| " set visualbell noerrorbells t_vb= | |
| " set binary noeol | |
| set listchars=tab:>-,nbsp:%,trail:_,eol:$ | |
| "exec "set listchars=tab:>-,nbsp:%,trail:_,eol:" . nr2char(0x21B2,1) | |
| set list | |
| "set imdisable | |
| set nofixendofline | |
| "set nowrap | |
| if has('win32') | |
| set runtimepath^=$USERPROFILE/Share/etc/vimfiles | |
| set runtimepath+=$USERPROFILE/Share/etc/vimfiles/after | |
| else | |
| set runtimepath^=$HOME/Share/etc/vimfiles | |
| set runtimepath+=$HOME/Share/etc/vimfiles/after | |
| endif | |
| " --- Key mapping --- | |
| noremap j gj | |
| noremap k gk | |
| "inoremap <C-Char-0x7f> <Bs> | |
| nnoremap <F5> :<C-u>source %<CR> | |
| nnoremap <Esc><Esc> :<C-u>set nohlsearch<Return> | |
| nnoremap / :<C-u>set hlsearch<Return>/ | |
| nnoremap ? :<C-u>set hlsearch<Return>? | |
| nnoremap * :<C-u>set hlsearch<Return>* | |
| nnoremap # :<C-u>set hlsearch<Return># | |
| nnoremap <C-TAB> :<C-u>tabnext<Return> | |
| " --- SKK-Settings --- | |
| " If SKK does not work, check these points. | |
| " (1) file exists. | |
| " (2) whether ~/.vim is ~/vimfiles's link | |
| let s:home=$HOME | |
| if len(s:home) <= 0 | |
| let s:home=$USERPROFILE | |
| endif | |
| if filereadable( s:home.'/Share/etc/SKK-JISYO.L') | |
| let g:skk_large_jisyo=s:home.'/Share/etc/SKK-JISYO.L' | |
| elseif filereadable('/cygdrive/c/usr/share/SKK-JISYO.L') | |
| let g:skk_large_jisyo='/cygdrive/c/usr/share/SKK-JISYO.L' | |
| endif | |
| " If not found dictionary, use default setting: /usr/local/share/skk/SKK-JISYO.L | |
| let g:skk_auto_save_jisyo = 1 | |
| imap <C-O> <C-J> | |
| imap <C-\> <C-J> | |
| imap <C-SPACE> <C-J> | |
| let g:skk_imdisable_state = 1 | |
| if $WT_SESSION != "" | |
| "set ambiwidth=single | |
| set ambiwidth=double | |
| elseif &encoding == 'utf-8' | |
| set ambiwidth=double | |
| endif | |
| let g:skk_use_color_cursor=1 | |
| let g:skk_cursor_hira_color='red' | |
| let g:skk_cursor_kata_color='red' | |
| let g:skk_cursor_zenei_color='red' | |
| let g:skk_cursor_abbrev_color='red' | |
| let g:skk_cursor_ascii_color='green' | |
| let g:skk_jisyo_encoding='euc-jp' | |
| let g:skk_large_jisyo_encoding='euc-jp' | |
| "let g:skk_large_jisyo_encoding='utf-8' | |
| "let g:skk_marker_white='[SKK]' | |
| "let g:skk_marker_black='[HNKN]' | |
| "let g:VimShell_EnableInteractive = 1 | |
| let g:scratchBackupFile=s:home . "/.scratch" | |
| " --- Syntax HiLight --- | |
| syntax enable | |
| filetype on | |
| au! BufRead,BufNewFile *.pc setfiletype c | |
| au! BufRead,BufNewFile w3mtmp* setfiletype wifky | |
| au! BufRead,BufNewFile *.go set ts=4 sw=4 noet ai notextmode fenc=utf8 | |
| au! BufRead,BufNewFile *.rs set ts=4 sw=4 ai notextmode fenc=utf8 | |
| au! FileType gitcommit setl fenc=utf-8 | |
| au! BufRead,BufNewFile *.eml set nowrap | |
| au! BufRead,BufNewFile *.{md,mdwn,mkd,mkdn,mark*} set filetype=markdown fenc=utf8 sw=2 | |
| au! BufRead,BufNewFile *.ps1 set filetype=ps1 | |
| au! BufRead *.log set nowrap | |
| au! BufRead,BufNewFile *.vb set ts=4 sw=4 | |
| au! BufRead,BufNewFile *.cs set ts=4 sw=4 | |
| au! BufRead,BufNewFile *.lsp set sw=2 ts=2 lisp | |
| "au! BufRead,BufNewFile *.lisp set sw=2 ts=2 | |
| au! BufRead,BufNewFile *.cpp set ts=4 sw=4 | |
| au! BufRead,BufNewFile *.{yaml,yml} set sw=2 | |
| au! BufRead,BufNewFile *.wxi set ts=4 noet | |
| au! BufRead,BufNewFile *.xml set enc=utf-8 | |
| au! BufRead,BufNewFile *.tsv set noet | |
| au! BufRead,BufNewFile *.zig set ft=zig | |
| au! BufRead,BufNewFile *.json set fenc=utf8 | |
| au! BufRead,BufNewFile Makefile set noai noet | |
| au! BufRead,BufNewFile .nyagos set ft=lua | |
| set printoptions=number:y | |
| if $GOROOT != '' | |
| set rtp+=$GOROOT/misc/vim | |
| endif | |
| let did_install_syntax_menu = 1 | |
| set lispwords+=for,while,defglobal,defclass,defglobal,flet,block,lambda-macro | |
| let lisp_rainbow=1 | |
| " gist https://gist.github.com/hymkor/7d8b21311f5dd8410dab72a62bc2be47 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment