- vimrc / init.vim
- gvimrc / ginit.vim
$ curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh
$ sh ./installer.sh ~/.cache/dein
- dein
~/.cache/dein/repos/github.com/Shougo/dein.vim
- Vim config
~/.vim/vimrc
~/.vim/gvimrc
~/.vim/dein.toml
- Neovim config
~/.config/nvim/init.vim
->~/.vim/vimrc
~/.config/nvim/ginit.vim
~/.config/nvim/dein.toml
->~/.vim/dein.toml
init.vim
にclipbooard+=unnamedplus
を追加xclip
orxsel
をインストール
:%s/hoge/fuga/g
ファイル内の単語を一括置換:%s/hoge/fuga/gc
ファイル内の単語を確認しながら置換:10,20s/hoge/fuga/gc
行を指定して置換
- basic
nnoremap <silent> <C-l> :<C-u>bnext<CR>
nnoremap <silent> <C-h> :<C-u>bprevious<CR>
nnoremap j gj
nnoremap k gk
inoremap <silent> jj <ESC>
nnoremap <silent> <ESC><ESC> :noh<CR>
- Leader
let mapleader = "\<Space>"
<leader><leader> V
<leader>w :<C-u>w<CR>
<leader>q :<C-u>bd<CR>
<leader>r :<C-u>call RepeatTerm()<CR>
- denite
nmap <Space>-u
[denite]u :<C-u>Denite buffer file_mru<CR>
[denite]b :<C-u>Denite buffer<CR>
[denite]h :<C-u>Denite file_mru<CR>
[denite]g :<C-u>Denite file<CR>
[denite]f :<C-u>DeniteBufferDir file<CR>
- fugitive
nmap <Space>-g
[fugitive]s :Gstatus<CR>
[fugitive]a :Gwrite<CR>
[fugitive]c :Gcommit-v<CR>
[fugitive]b :Gblame<CR>
[fugitive]d :Gdiff<CR>
[fugitive]m :Gmerge<CR>
- vim-racer
- completion:
<C-x><C-o>
au FileType rust nmap gd <Plug>(rust-def)
au FileType rust nmap gs <Plug>(rust-def-split)
au FileType rust nmap gx <Plug>(rust-def-vertical)
au FileType rust nmap <leader>gd <Plug>(rust-doc)
- completion:
- jedi-vim
let g:jedi#goto_assignments_command = "<leader>g"
let g:jedi#goto_command = "<leader>d"
let g:jedi#goto_definitions_command = ""
let g:jedi#documentation_command = "K"
let g:jedi#usages_command = "<leader>n"
let g:jedi#completions_command = "<C-Space>"
let g:jedi#rename_command = "<leader>n"
- merlin
- completion:
<C-x><C-o>
- completion:
- Shougo/dein
- roxma/vim-hug-neovim-rpc (Vim only)
- roxma/nvim-yarp (Vim only)
- Yet Another Remote Plugin Framework for Neovim
- "This is my attempt on writing a remote plugin framework without"
何が必要で何が不要か整理中。ややこしい
- Shougo/deoplete.nvim
- Shougo/denite.nvim
- Shougo/neomru.vim
- README.mdすらないんだけど使っていいやつなのかな?
- rust-lang/rust.vim
- racer-rust/vim-racer
- davidhalter/jedi-vim
- tpope/vim-fugitive
- junegunn/goyo.vim
- cespare/vim-toml
- vim-airline/vim-airline
- vim-airline/vim-airline-themes
- dart-lang/dart-vim-plugin
- Dart/Flutterの文法エラーチェック、自動フォーマットをやってくれる
- LSPを適用させて編集中にもチェックしてくれるようにした。設定内容はコピペなのでわからん
export DART_SDK=~/flutter
してPATH通す必要あり
- prabirshrestha/vim-lsp
- いろいろうるさいのをなんとかして黙らせた。面倒くさい……
let g:lsp_diagnostics_signs_enabled = 0
左側になんか出てくるやつlet g:lsp_document_code_action_signs_enabled = 0
左側になんか出てくるやつその2let g:lsp_document_highlight_enabled = 0
選択中の変数をハイライトで白くするやつ。見えないんだよ
- mattn/vim-lsp-settings
prabirshrestha/vim-lsp
の設定をなんかしてくれるやつ
- lighttiger2505/deoplete-vim-lsp
- w0rp/ale
- linterのエラーを出力するプラグイン
vim-lsp
だけでもALEを代用できるらしい。
- junegunn/fzf.vim
- Merlin and ocp-indent
- scrooloose/nerdtree
- thosakwe/vim-flutter
- コマンドラインだけで足りてるからまぁいいかなって
Neovim-Gtkは使用するPCでコンパイルしないとフォントが認識されない?要確認。
- gvim
set guifont=M+\ 1M\ medium\ 11
- neovim-gtk
call rpcnotify(1, 'Gui', 'Font', 'M+ 1M medium 12')
- neovim-qt
Guifont! M+ 1M medium:h12
- tmux.conf
/etc/zshenv
,~/.zshenv
/etc/zprofile
,~/.zprofile
/etc/zshrc
,~/.zshrc
/etc/zlogin
,~/.zlogin
/etc/zshenv
,~/.zshenv
/etc/zshrc
,~/.zshrc
/etc/zshenv
,~/.zshenv
- ログインシェル、インタラクティブシェル、シェルスクリプトのどの場合でも実行される
- ログインシェルの場合に1度だけ読み込まれる。
- インタラクティブシェルやシェルスクリプトでは不要だがログインシェルの時だけ必要な設定をする場合はここに記述する。
eval $(opam config env)
export PATH="$HOME/flutter/bin:$PATH"
export PATH="$HOME/android-studio/bin:$PATH"
export PATH="$HOME/Inkdrop:$PATH"
- ログインシェルとインタラクティブシェルの場合だけ読み込まれる。
- シェルスクリプトでは不要な場合に記述する。
export PATH="/usr/local/texlive/2021/bin/x86_64-linux:$PATH"
- ログインシェルの場合だけ読み込まれる。
- zprofileと一緒だが、重要なのはzshrcの後に読み込まれるということ。
- ちなみにzprofileとzloginを一緒に使うことはあまり想定されていないらしい。
~/.config/fontconfig/fonts.conf
に置いて設定