1
0
mirror of https://github.com/amix/vimrc synced 2025-02-28 14:12:51 +08:00
amix-vimrc-mirror/my_configs.vim
someoneoncry c401c8b946 - 添加自定义配置
- 配置打开目录树及最近文件快捷键
- 加入交换上下两行的插件
> 插件来源[cnblog](https://blog.csdn.net/dowemo/article/details/78425352)
2019-08-27 17:19:12 +08:00

46 lines
585 B
VimL
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

" 使用系统剪贴板
set clipboard=unnamedplus
set ts=4
set nu
map q :q<CR>
" map w :w<cr>
" map b <c-v>
map t :tabe<space>
" 使光标位置屏幕中间位置
map j gjzz
map k gkzz
map * *zz
map # #zz
map n nzz
map <S-n> <S-n>zz
map <C-o> <C-o>zz
map <C-i> <C-i>zz
map <C-a> ggVG
" 缩进
map <tab> V>
map <S-tab> V<
map <C-tab> gt
" 切换目录树窗口
map <C-h> :NERDTreeToggle<CR>
" 最近文件
map <C-e> :MRU<CR>
" 切换窗口
" ^[ = Alt
map w <C-w>w
map h <C-w>h
map j <C-w>j
map k <C-w>k
map l <C-w>l
" 编辑器模式下复制新行
imap <C-d> <Esc>Vypi