diff options
author | Nao Ueda <nao.uedder@gmail.com> | 2020-03-28 13:44:24 +0900 |
---|---|---|
committer | Nao Ueda <nao.uedder@gmail.com> | 2020-03-28 13:44:24 +0900 |
commit | 736f91eb32af5b544db48ce474c3742ecc3d4478 (patch) | |
tree | b4ba32face5a4a1a132da0e87b811f4eff02a20d | |
parent | 3a96e72b0e428c2b716a8d7c8b8d7c286330140d (diff) | |
download | vimrc-736f91eb32af5b544db48ce474c3742ecc3d4478.tar.gz vimrc-736f91eb32af5b544db48ce474c3742ecc3d4478.tar.bz2 vimrc-736f91eb32af5b544db48ce474c3742ecc3d4478.zip |
split settings.
-rw-r--r-- | _config/000-mappings.vim | 6 | ||||
-rw-r--r-- | _config/002-commands.vim | 2 | ||||
-rw-r--r-- | vimrc | 9 |
3 files changed, 8 insertions, 9 deletions
diff --git a/_config/000-mappings.vim b/_config/000-mappings.vim new file mode 100644 index 0000000..8d4ce6a --- /dev/null +++ b/_config/000-mappings.vim @@ -0,0 +1,6 @@ +nmap <silent> <Leader>t :term ++close zsh -i<CR> +nmap <silent> <Leader>T :vert term ++close zsh -i<CR> +nmap <silent> <C-t> <C-o> +nmap <silent> <C-l> :noh<CR>:redraw<CR> + + diff --git a/_config/002-commands.vim b/_config/002-commands.vim new file mode 100644 index 0000000..67bf12c --- /dev/null +++ b/_config/002-commands.vim @@ -0,0 +1,2 @@ +command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ + \ | diffthis | wincmd p | diffthis @@ -48,18 +48,9 @@ endif set directory=~/.vim/tmp -nmap <silent> <Leader>t :term ++close zsh -i<CR> -nmap <silent> <Leader>T :vert term ++close zsh -i<CR> -nmap <silent> <C-t> <C-o> -nmap <silent> <C-l> :noh<CR>:redraw<CR> - let mapleader = "\<Space>" let maplocalleader = "\<Bslash>" -" custom command -command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ - \ | diffthis | wincmd p | diffthis - " git commit 時にはプラグインは読み込まない " if $HOME != $USERPROFILE && $GIT_EXEC_PATH != '' " |