Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173" ファイルの種類毎に設定ファイルを記述できるようにするfiletype plugin indent off"-------------------------------"" Global"-------------------------------"" `.vim` is used when human rights are being violatedlet g:human_rights = 0let g:is_mac = has("mac")let g:is_linux = has("linux")let g:is_windows = has("win32")let g:is_wsl = has("wsl")let g:is_unix = has("unix")" TODO: path_sep" -- NOTE:" -- Windows: "\"" -- Linux: "/"" ---@type string" local path_sep_char = string.sub(package.config, 1, 1)" -- NOTE: self.path_sep = self.is_windows and "\\" or "/"" ---@type string" self.path_sep = self.is_windows and string.rep(path_sep_char, 2) or path_sep_char"-------------------------------"" Settings"-------------------------------"let g:use_copilot = 0"-------------------------------"" Options"-------------------------------""# True Colorでのシンタックスハイライトset termguicolorslet &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"" マウス操作を有効にするset mouse=a" シンタックスハイライトを有効にするsyntax enable" 使用可能性のある改行コードを指定set fileformats=unix,dos,mac" ファイル読み込むときのエンコード" 左から順に試すset fileencodings=utf-8,cp932,ucs-bombs,euc-jp" 全角文字の表示に2文字分使うようにするset ambiwidth=double" スワップファイルを作成しないようにするset noswapfile" :q したときにバッファを消さず隠して保持しておくようにする" Linuxの場合のみ設定" TODO: Improveif g:is_unix set hiddenendif" 行番号を表示するset number" 空白文字を可視化するset listset listchars=tab:>-,trail:*,nbsp:+,space:⋅" 良い感じにインデントしてくれるようにするset smartindent" ビープ音を画面フラッシュで代替set visualbell" TABキーを押したときにtab文字ではなくスペースを入力するようにするset expandtab" TABキーを押したときのインデントのスペース個数を指定するset tabstop=4" 自動インデントのスペース個数を指定するset shiftwidth=4" 検索関係の設定" 大文字小文字の区別をなくすset ignorecase" 検索単語に大文字が含まれていた場合特別な意味があると解釈させるset smartcase" 一番下の単語まで行ったら一番上に戻るようにさせるset wrapscan" ある行の行頭から前の行の行末に移動したり, 逆に行末から次の行の行頭に移動できるようにする" BackSpaceキー, SPACEキーで有効になる" <(←キー),>(→キー)はNORMALモード及びVISUALモードで各キーにこの機能を割り当て" [(←キー),](→キー)はINSERTモード(置換含む)でこの機能を有効にするset whichwrap=b,s,<,>,[,]" NeoVimの無名レジスタ(yでヤンクしたときにコピーする先)とOSのクリップボードを結びつけるset clipboard+=unnamedplus"-------------------------------"" Plugins"-------------------------------"" Automatic installation on startuplet s:jetpackfile = expand('<sfile>:p:h') .. '/pack/jetpack/opt/vim-jetpack/plugin/jetpack.vim'let s:jetpackurl = "https://raw.githubusercontent.com/tani/vim-jetpack/master/plugin/jetpack.vim"if !filereadable(s:jetpackfile) call system(printf('curl -fsSLo %s --create-dirs %s', s:jetpackfile, s:jetpackurl))endifpackadd vim-jetpackcall jetpack#begin()Jetpack 'tani/vim-jetpack', {'opt': 1}" colorschemeJetpack 'sainnhe/sonokai'" utilitiesJetpack 'vim-jp/vimdoc-ja'call jetpack#end()" Automatic plugin installation on startupfor name in jetpack#names() if !jetpack#tap(name) call jetpack#sync() break endifendfor"-------------------------------" keymaps"-------------------------------" ファイル上の1行が画面上では複数行にわたっているとき" NORMALモード時の j/kで見た目通りに移動できるようにするnnoremap j gjnnoremap k gk" win32yankの設定"nnoremap <silent> <Space>y :.w !win32yank.exe -i<CR><CR>"vnoremap <silent> <Space>y :w !win32yank.exe -i<CR><CR>"nnoremap <silent> <Space>p :r !win32yank.exe -o<CR>"vnoremap <silent> <Space>p :r !win32yank.exe -o<CR>" Ctrl+Wを押した後にnを押すことで新規タブを開けるようにするnnoremap <C-w>n <Esc>:enew<Return>" ESCキー連打でハイライト解除nmap <Esc><Esc> :nohlsearch<CR><Esc>"-------------------------------" vim-jp/vimdoc-ja"-------------------------------set helplang=ja,en" sainnhe/sonokailet g:sonokai_style = 'andromeda'colorscheme sonokai" 末尾なのでこれを入れるfiletype plugin indent on