Created
September 11, 2025 12:56
-
-
Save KhanhhNe/21b8fe8fb0ca15eac331009d1fb4aecb to your computer and use it in GitHub Desktop.
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 characters
| syntax on | |
| " Show a few lines of context around the cursor. Note that this makes the | |
| " text scroll if you mouse-click near the start or end of the window. | |
| set scrolloff=5 | |
| " Do incremental searching. | |
| set incsearch | |
| " Don't use Ex mode, use Q for formatting. | |
| map Q gq | |
| let mapleader=" " | |
| set clipboard= | |
| " call plug#begin() | |
| " let g:EasyMotion_verbose = 0 | |
| " let g:EasyMotion_smartcase = 1 | |
| " Plug 'easymotion/vim-easymotion' | |
| " nmap s <Plug>(easymotion-s) | |
| " Plug 'tpope/vim-surround' | |
| " call plug#end() | |
| " JetBrains mappings | |
| if has('ide') | |
| map gh <Action>(ShowHoverInfo) | |
| map gb <Action>(GitToolBox.BlameDetails) | |
| command! Gtt :action GotoTest | |
| command! Crel :action CopyPathFromRepositoryRootProvider | |
| command! Cs execute '!cursor %' | |
| map ]d <Action>(GotoNextError) | |
| map [d <Action>(GotoPreviousError) | |
| " VSCode mappings | |
| elseif exists('g:vscode') | |
| command! Gtt :call v:lua.require("vscode").call("alternate.alternateFile")<CR> | |
| nnoremap ]d :call v:lua.require("vscode").call("editor.action.marker.next")<CR> | |
| nnoremap [d :call v:lua.require("vscode").call("editor.action.marker.prev")<CR> | |
| " nvim command | |
| else | |
| set number | |
| set relativenumber | |
| endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment