Last active
July 22, 2020 03:40
-
-
Save ravenxrz/dba8dd0c1eba4bb039f008f56867e083 to your computer and use it in GitHub Desktop.
Revisions
-
ravenxrz revised this gist
Jul 22, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -36,7 +36,7 @@ set nowrap " 将制表符扩展为空格 set expandtab " 设置编辑时制表符占用空格数 set tabstop=4 " 设置格式化时制表符占用空格数 set shiftwidth=4 " 让 vim 把连续数量的空格视为一个制表符 -
ravenxrz revised this gist
Feb 14, 2020 . 1 changed file with 13 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -52,7 +52,6 @@ let mapleader=";" " 暂时取消搜索高亮快捷键 nnoremap <silent> <Leader>l :<C-u>nohlsearch<CR><C-l> " 移动相关 " 前一个缓冲区 nnoremap <silent> [b :w<CR>:bprevious<CR> @@ -81,7 +80,6 @@ map <C-k> <C-W>k map <C-h> <C-W>h map <C-l> <C-W>l " 使用idea内部功能 " copy operation nnoremap <Leader>c :action $Copy<CR> @@ -111,4 +109,16 @@ nnoremap <Leader>fp :action ShowFilePath<CR> nnoremap <Leader>h :action HideActiveWindow<CR> " 中英文自动切换 set keep-english-in-normal-and-restore-in-insert " other vim plugins " comment plugin set commentary " surround plugin set surround " easymotion set easymotion " some useful shortcuts in ide, but doesn't remap those. " open project file tree ---------- alt + 1 " open terminal window ---------- alt + F12 -
ravenxrz revised this gist
Feb 14, 2020 . 1 changed file with 16 additions and 6 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -54,8 +54,8 @@ nnoremap <silent> <Leader>l :<C-u>nohlsearch<CR><C-l> " 移动相关 " 前一个缓冲区 nnoremap <silent> [b :w<CR>:bprevious<CR> " 后一个缓冲区 nnoremap <silent> ]b :w<CR>:bnext<CR> " 定义快捷键到行首和行尾 @@ -83,18 +83,28 @@ map <C-l> <C-W>l " 使用idea内部功能 " copy operation nnoremap <Leader>c :action $Copy<CR> " paste operation nnoremap <Leader>v :action $Paste<CR> " cut operation nnoremap <Leader>x :action $Cut<CR> " Select All nnoremap <Leader>a :action $SelectAll<CR> " reformat code nnoremap <Leader>f :action ReformatCode<CR> " New File nnoremap <Leader>n :action NewFile<CR> " 找到usage nnoremap <Leader>u :action FindUsages<CR> " 调用idea的replace操作 nnoremap <Leader>; :action Replace<CR> " go to class nnoremap <Leader>gc :action GotoClass<CR> " go to action nnoremap <Leader>ga :action GotoAction<CR> " run nnoremap <Leader>r :action RunClass<CR> " 显示当前文件的文件路径 nnoremap <Leader>fp :action ShowFilePath<CR> " 隐藏激活窗口 -
ravenxrz revised this gist
Jan 29, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -67,7 +67,7 @@ nmap <Leader>t <C-]> nmap <Leader>T <C-t> " 标签页后退 ---标签页前进是gt nmap gn gt nmap gp gT " 文件操作相关 " 定义快捷键关闭当前分割窗口 -
ravenxrz revised this gist
Jan 11, 2020 . 1 changed file with 5 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ set clipborad=unamed " 打开行号 set number " 打开相对行号 " set relativenumber " 设置命令历史记录条数 set history=2000 " 关闭兼容vi @@ -67,7 +67,7 @@ nmap <Leader>t <C-]> nmap <Leader>T <C-t> " 标签页后退 ---标签页前进是gt nmap gn gt nmap gb gT " 文件操作相关 " 定义快捷键关闭当前分割窗口 @@ -99,3 +99,6 @@ nnoremap <Leader>r :action Run<CR> nnoremap <Leader>fp :action ShowFilePath<CR> " 隐藏激活窗口 nnoremap <Leader>h :action HideActiveWindow<CR> " 中英文自动切换 set keep-english-in-normal-and-restore-in-insert -
ravenxrz revised this gist
Sep 12, 2019 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -66,7 +66,8 @@ nmap <Leader>t <C-]> " 定义快速跳转回退 nmap <Leader>T <C-t> " 标签页后退 ---标签页前进是gt nmap gn gt nmap gp gT " 文件操作相关 " 定义快捷键关闭当前分割窗口 -
ravenxrz revised this gist
Sep 5, 2019 . 1 changed file with 6 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ " 显示当前模式 set showmode " 共享系统粘贴板 set clipborad=unamed " 打开行号 set number " 打开相对行号 @@ -75,8 +75,10 @@ nmap <Leader>q :q<CR> nmap <Leader>w :w<CR> " 窗口操作相关 map <C-j> <C-W>j map <C-k> <C-W>k map <C-h> <C-W>h map <C-l> <C-W>l " 使用idea内部功能 @@ -95,4 +97,4 @@ nnoremap <Leader>r :action Run<CR> " 显示当前文件的文件路径 nnoremap <Leader>fp :action ShowFilePath<CR> " 隐藏激活窗口 nnoremap <Leader>h :action HideActiveWindow<CR> -
ravenxrz revised this gist
Aug 10, 2019 . 1 changed file with 0 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -73,9 +73,6 @@ nmap gb gT nmap <Leader>q :q<CR> " 定义快捷键保存当前窗口内容 nmap <Leader>w :w<CR> " 窗口操作相关 nmap <Leader>wh <C-w>h -
ravenxrz revised this gist
Aug 10, 2019 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -73,6 +73,9 @@ nmap gb gT nmap <Leader>q :q<CR> " 定义快捷键保存当前窗口内容 nmap <Leader>w :w<CR> " 复制到系统剪贴板 nmap <Leader>y "+y nmap <Leader>yy "+yy " 窗口操作相关 nmap <Leader>wh <C-w>h -
ravenxrz revised this gist
Aug 10, 2019 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -94,3 +94,5 @@ nnoremap <Leader>ga :action GotoAction<CR> nnoremap <Leader>r :action Run<CR> " 显示当前文件的文件路径 nnoremap <Leader>fp :action ShowFilePath<CR> " 隐藏激活窗口 nnoremap <Leader>h :action HideActiveWindow<CR> -
ravenxrz revised this gist
Aug 10, 2019 . 1 changed file with 21 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ " 显示当前模式 set showmode " 共享系统粘贴板 set clipborad+=unamed " 打开行号 set number " 打开相对行号 @@ -51,30 +51,46 @@ set nofoldenable let mapleader=";" " 暂时取消搜索高亮快捷键 nnoremap <silent> <Leader>l :<C-u>nohlsearch<CR><C-l> " 移动相关 " 前一个缓冲区 nnoremap <silent> [b :w<CR>:bprevious<CR> " 后一个缓冲区 nnoremap <silent> ]b :w<CR>:bnext<CR> " 定义快捷键到行首和行尾 map H ^ map L $ " 定义快速跳转 nmap <Leader>t <C-]> " 定义快速跳转回退 nmap <Leader>T <C-t> " 标签页后退 ---标签页前进是gt nmap gb gT " 文件操作相关 " 定义快捷键关闭当前分割窗口 nmap <Leader>q :q<CR> " 定义快捷键保存当前窗口内容 nmap <Leader>w :w<CR> " 窗口操作相关 nmap <Leader>wh <C-w>h nmap <Leader>wl <C-w>l " 使用idea内部功能 " 调用idea的find操作 nnoremap <Leader>/ :action Find<CR> " 找到usage nnoremap <Leader>u :action FindUsages<CR> " 调用idea的replace操作 nnoremap <Leader>: :action Replace<CR> " go to class nnoremap <Leader>gc :action GotoClass<CR> " go to action nnoremap <Leader>ga :action GotoAction<CR> " run nnoremap <Leader>r :action Run<CR> " 显示当前文件的文件路径 nnoremap <Leader>fp :action ShowFilePath<CR> -
ravenxrz created this gist
Aug 10, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,80 @@ " 显示当前模式 set showmode " 共享系统粘贴板 set clipborad=unamed " 打开行号 set number " 打开相对行号 set relativenumber " 设置命令历史记录条数 set history=2000 " 关闭兼容vi set nocompatible " 开启语法高亮功能 syntax enable " 允许用指定语法高亮配色方案替换默认方案 syntax on " 模式搜索实时预览,增量搜索 set incsearch " 设置搜索高亮 set hlsearch " 忽略大小写 (该命令配合smartcase使用较好,否则不要开启) set ignorecase " 模式查找时智能忽略大小写 set smartcase " vim自身命令行模式智能补全 set wildmenu " 总是显示状态栏 set laststatus=2 " 显示光标当前位置 set ruler " 高亮显示当前行/列 set cursorline "set cursorcolumn " 禁止折行 set nowrap " 将制表符扩展为空格 set expandtab " 设置编辑时制表符占用空格数 set tabstop=8 " 设置格式化时制表符占用空格数 set shiftwidth=4 " 让 vim 把连续数量的空格视为一个制表符 set softtabstop=4 " 基于缩进或语法进行代码折叠 set foldmethod=indent set foldmethod=syntax " 启动 vim 时关闭折叠代码 set nofoldenable " 设置前导键 let mapleader=";" " 暂时取消搜索高亮快捷键 nnoremap <silent> <Leader>l :<C-u>nohlsearch<CR><C-l> " 前一个缓冲区 nnoremap <silent> [b :w<CR>:bprevious<CR> " 后一个缓冲区 nnoremap <silent> ]b :w<CR>:bnext<CR> " 定义快捷键到行首和行尾 map H ^ map L $ " 定义快捷键关闭当前分割窗口 nmap <Leader>q :q<CR> " 定义快捷键保存当前窗口内容 nmap <Leader>w :w<CR> " 使用idea内部功能 " 调用idea的find操作 nnoremap <Leader>/ :action Find<CR> " 调用idea的replace操作 nnoremap <Leader>: :action Replace<CR> " go to class nnoremap <Space>gc :action GotoClass<CR> " go to action nnoremap <Space>ga :action GotoAction<CR> " run nnoremap <Leader>r :action Run<CR> " 显示当前文件的文件路径 nnoremap <Leader>fp :action ShowFilePath<CR>