shubham-cpp / dotfiles

Configs for Programs I use on daily basis
GNU General Public License v3.0
4 stars 0 forks source link

vscode-neovim #6

Open shubham-cpp opened 1 year ago

shubham-cpp commented 1 year ago

Vscode or Neovim, why not both

Vscode settings.json ```jsonc { // "workbench.colorTheme": "One Dark Pro", // "workbench.iconTheme": "material-icon-theme", "tabnine.experimentalAutoImports": true, "files.trimTrailingWhitespace": true, "editor.bracketPairColorization.independentColorPoolPerBracketType": true, "editor.guides.bracketPairs": "active", "editor.quickSuggestions": { "other": true, "comments": true, "strings": true }, "workbench.colorCustomizations": { "editorCursor.foreground": "#e75c34", // "#d470cb", "editorCursor.background": "#fff0cb", "statusBar.background": "#3c3c3c" }, "editor.suggest.localityBonus": true, "editor.suggestSelection": "recentlyUsedByPrefix", "editor.wordBasedSuggestionsMode": "allDocuments", "editor.fontSize": 14, "editor.fontFamily": "'FiraCode NFM','JetBrainsMono NFM','Hack NFM',MonoLisa,'Cascadia Code', Consolas, 'Courier New', monospace", "vim.useSystemClipboard": true, "editor.wordWrap": "on", "editor.fontLigatures": true, "extensions.experimental.affinity": { //makes neovim faster, apparently "asvetliakov.vscode-neovim": 1 }, "vim.foldfix": true, "vim.highlightedyank.enable": true, "vim.changeWordIncludesWhitespace": true, "vim.easymotion": true, "vim.gdefault": true, "vim.leader": "", "vim.replaceWithRegister": true, "vim.smartRelativeLine": true, // "vim.sneak": true, // "vim.sneakReplacesF": true, "vim.visualstar": true, "vim.whichwrap": "b,s,[,],<,>", "vim.operatorPendingModeKeyBindingsNonRecursive": [ { "before": ["("], "after": ["i("] } ], "vim.visualModeKeyBindingsNonRecursive": [ { "before": ["p"], "after": ["p", "g", "v", "y"] }, { "before": ["c"], "after": ["\"", "_", "c"] }, { "before": ["K"], "commands": ["editor.action.moveLinesUpAction"] }, { "before": ["J"], "commands": ["editor.action.moveLinesDownAction"] } ], "vim.normalModeKeyBindingsNonRecursive": [ { "before": ["s"], "after": ["leader", "leader", "2", "s"] }, { "before": ["S"], "after": ["leader", "leader", "leader", "b", "d", "w"] }, { "before": ["Y"], "after": ["y", "$"] }, { "before": ["d", "l"], "after": ["\"", "_", "d", "l"] }, { "before": ["c"], "after": ["\"", "_", "c"] }, { "before": ["C"], "after": ["\"", "_", "C"] }, { "before": ["g", "s"], "commands": ["code-runner.run"] }, { "before": [",", "W"], "commands": ["workbench.action.files.saveWithoutFormatting"] }, { "before": [",", "w"], "commands": ["workbench.action.files.save"] }, { "before": ["]", "g"], "commands": ["editor.action.marker.next"] }, { "before": ["[", "g"], "commands": ["editor.action.marker.prev"] }, { "before": ["]", "z"], "commands": ["cSpell.goToNextSpellingIssue"] }, { "before": ["]", "Z"], "commands": ["cSpell.goToNextSpellingIssueAndSuggest"] }, { "before": [0], "after": ["^"] }, { "before": ["C-n"], "commands": ["extension.advancedNewFile"] }, { "before": ["C-b"], "commands": ["workbench.action.toggleSidebarVisibility"] }, { "before": ["C-j"], "commands": ["workbench.action.terminal.toggleTerminal"] }, { "before": ["C-l"], "after": ["", "l"] }, { "before": ["C-h"], "after": ["", "h"] }, { "before": ["i"], "after": ["z", "z", "i"] }, { "before": ["I"], "after": ["z", "z", "I"] }, { "before": ["a"], "after": ["z", "z", "a"] }, { "before": ["A"], "after": ["z", "z", "A"] }, { "before": ["K"], "after": ["g", "h"] }, { "before": ["C-w", "O"], "commands": ["workbench.action.closeOtherEditors"] } ], "vim.visualModeKeyBindings": [ { "before": [">"], "commands": ["editor.action.indentLines"] }, { "before": ["<"], "commands": ["editor.action.outdentLines"] } ], "terminal.integrated.copyOnSelection": true, "terminal.integrated.cursorBlinking": true, "terminal.integrated.fontSize": 16, "editor.cursorSurroundingLines": 8, "eslint.format.enable": true, "[html]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[css]": { "editor.defaultFormatter": "vscode.css-language-features" }, "[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[typescript]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, "[vue]": { "editor.defaultFormatter": "Vue.volar", "editor.tabSize": 2 }, "[javascriptreact]": { "editor.tabSize": 2 }, "[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.tabSize": 2 }, "[scss]": { "editor.defaultFormatter": "vscode.css-language-features" }, "volar.autoCompleteRefs": true, "volar.codeLens.scriptSetupTools": true, "volar.vueserver.useSecondServer": true, // "editor.stickyScroll.enabled": true, "terminal.integrated.smoothScrolling": true, "editor.wordSeparators": "`~!@#$%^&*()=+[{]}\\|;:'\",.<>/?", "path-intellisense.autoTriggerNextSuggestion": true, "editor.inlayHints.padding": true, // "editor.codeActionsOnSave": { // "source.fixAll": true, // "source.organizeImports": true // }, "files.eol": "\n", "workbench.iconTheme": "material-icon-theme", "[typescriptreact]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, "todo-tree.general.tags": [ "BUG", "HACK", "FIXME", "TODO", "XXX", "[ ]", "[x]", "DOUBT", "REFACTOR", ], "todo-tree.general.tagGroups": { "FIXME": ["FIXME", "FIXIT", "FIX"], "DOUBT": ["DOUBT", "ASK", "QUESTION", "REF"] }, "todo-tree.highlights.customHighlight": { "DOUBT": { "foreground": "#ffeee1", "background": "#a65288", "type": "tag-and-comment" } }, "todo-tree.highlights.useColourScheme": true, "code-runner.clearPreviousOutput": true, // "code-runner.runInTerminal": true, "code-runner.saveFileBeforeRun": true, "editor.minimap.autohide": true, "editor.minimap.scale": 2, "workbench.sideBar.location": "right", "workbench.editor.wrapTabs": true, "window.menuBarVisibility": "compact", "vim.enableNeovim": true, "editor.lineNumbers": "relative" } ```
neovim: init.vim ```vim " Basic settings set relativenumber set tabstop=2 set softtabstop=2 set shiftwidth=2 set expandtab set autoindent set smartindent set mouse=a set nocompatible set ignorecase set smartcase set path+=** set clipboard+=unnamedplus set iskeyword+=- set wildmenu syntax enable let g:mapleader = " " " Trigger a highlight in the appropriate direction when pressing these keys: let g:qs_highlight_on_keys = ['f', 'F', 't', 'T'] " let g:qs_lazy_highlight = 1 function! Cond(Cond, ...) let opts = get(a:000, 0, {}) return a:Cond ? opts : extend(opts, { 'on': [], 'for': [] }) endfunction " Plugging plugins call plug#begin() Plug 'kana/vim-textobj-user' Plug 'kana/vim-textobj-entire' Plug 'kana/vim-textobj-line' " Plug 'michaeljsmith/vim-indent-object' " Plug 'christoomey/vim-titlecase' Plug 'tpope/vim-repeat' Plug 'sheerun/vim-polyglot' Plug 'sainnhe/everforest' Plug 'tpope/vim-surround' Plug 'junegunn/vim-easy-align' Plug 'tpope/vim-commentary' Plug 'wellle/targets.vim' Plug 'unblevable/quick-scope' Plug 'svermeulen/vim-subversive' Plug 'Darazaki/indent-o-matic' Plug 'monaqa/dial.nvim' call plug#end() " let g:sandwich#recipes = deepcopy(g:sandwich#default_recipes) " Color theme configuration if has('termguicolors') set termguicolors endif set background=dark let g:everforest_background = 'hard' let g:everforest_better_performance = 1 colorscheme everforest if exists('g:vscode') " VsCode Any map zh call VSCodeNotify('yo1dog.cursor-trim.lTrimCursor') map zl call VSCodeNotify('yo1dog.cursor-trim.rTrimCursor') map zi call VSCodeNotify('yo1dog.cursor-trim.trimCursor') map ze call VSCodeNotify('scrollLineDown') map zy call VSCodeNotify('scrollLineUp') map [f call VSCodeNotify('workbench.view.search.focus') map ]f call VSCodeNotify('workbench.action.replaceInFiles') map gD call VSCodeNotify('editor.action.revealDefinitionAside') map gr call VSCodeNotify('editor.action.goToReferences') map [s call VSCodeNotify('editor.action.toggleStickyScroll') map =< call VSCodeNotify('editor.action.trimTrailingWhitespace') map gl call VSCodeNotify('editor.action.openLink') xmap gc VSCodeCommentary nmap gc VSCodeCommentary omap gc VSCodeCommentary nmap gcc VSCodeCommentaryLine map 15jzz map 15kzz vnoremap f call VSCodeNotifyRangePos('editor.action.formatSelection', line("v"), line("."), col("v"), col("."), 1) nmap gb call VSCodeNotify('editor.action.addSelectionToNextFindMatch') nnoremap call VSCodeNotify('editor.action.insertCursorAbove') nnoremap call VSCodeNotify('editor.action.insertCursorBelow') nnoremap call VSCodeNotify('workbench.action.nextEditor') nnoremap call VSCodeNotify('workbench.action.previousEditor') nnoremap o call VSCodeNotify('workbench.action.openRecent') nnoremap ,w call VSCodeNotify('workbench.action.files.save') nnoremap ,W call VSCodeNotify('workbench.action.files.saveWithoutFormatting') nnoremap gh call VSCodeNotify('editor.action.showHover') " VsCode Folding map za call VSCodeNotify('editor.toggleFold') map zC call VSCodeNotify('editor.foldAll') map zO call VSCodeNotify('editor.unfoldAll') map zp call VSCodeNotify('editor.gotoParentFold') nnoremap call VSCodeNotify('workbench.action.toggleSidebarVisibility') nnoremap call VSCodeNotify('workbench.action.terminal.toggleTerminal') nnoremap gg call VSCodeNotify('workbench.view.scm') nnoremap ge call VSCodeNotify('workbench.view.extensions') nnoremap gs call VSCodeNotify('workbench.view.search.toggleVisibility') nnoremap gf call VSCodeNotify('workbench.view.explorer') nnoremap gk call VSCodeNotify('workbench.action.openGlobalKeybindings') " VsCode Scrolling map zl call VSCodeNotify('toggleTypewriter') " nnoremap call VSCodeNotify('workbench.action.closeActiveEditor')k imap call VSCodeNotify('editor.action.insertLineBefore') nnoremap call VSCodeNotify('workbench.action.previousEditor') nnoremap call VSCodeNotify('workbench.action.nextEditor') else noremap zz noremap zz map 12jzz map 12kzz nnoremap zp vaBo^ endif highlight QuickScopePrimary guifg='#afff5f' gui=underline ctermfg=155 cterm=underline highlight QuickScopeSecondary guifg='#5fffff' gui=underline ctermfg=81 cterm=underline nmap s (SubversiveSubstitute) nmap ss (SubversiveSubstituteLine) nmap S (SubversiveSubstituteToEndOfLine) nmap 0 ^ nnoremap nohl " nnoremap / /\v " nnoremap ? ?\v " vnoremap s VSurround vnoremap c "_c nnoremap c "_c nnoremap C "_C nnoremap dl "_dl vnoremap p 'pgv"'.v:register.'y' vnoremap J :m '>+1gv=gv vnoremap K :m '<-2gv=gv vnoremap > >gv vnoremap < " nnoremap " nnoremap " nnoremap nnoremap mz:m+`z nnoremap mz:m-2`z nmap j gj nmap k gk nmap (dial-increment) nmap (dial-decrement) vmap (dial-increment) vmap (dial-decrement) vmap g g(dial-increment) vmap g g(dial-decrement) xmap ga (EasyAlign) nmap ga (EasyAlign) onoremap ie :exec "normal! ggVG" onoremap iv :exec "normal! HVL" augroup highlight_yank autocmd! autocmd TextYankPost * silent! lua vim.highlight.on_yank { higroup="IncSearch", timeout=100 } augroup END lua << EOF local ok_indent, iom = pcall(require,'indent-o-matic') if ok_indent then iom.setup {} end local ok_dial, augend = pcall(require,'dial.augend') if ok_dial then local webs = { augend.integer.alias.decimal, augend.integer.alias.hex, augend.constant.alias.bool, augend.constant.new{ elements = {"&&", "||"}, word = false, cyclic = true, }, augend.constant.new{ elements = {"let", "const"} }, } local py_lua = { augend.integer.alias.decimal, augend.integer.alias.hex, augend.constant.alias.bool, augend.constant.new{ elements = {"and", "or"}, word = true, -- if false, "sand" is incremented into "sor", "doctor" into "doctand", etc. cyclic = true, -- "or" is incremented into "and". }, } require("dial.config").augends:register_group{ default = { augend.integer.alias.decimal, augend.integer.alias.hex, augend.constant.alias.bool, augend.constant.new{ elements = {"&&", "||"}, word = false, cyclic = true, }, }, vue = webs, javascript = webs, javascriptreact = webs, typescript = webs, typescriptreact = webs, lua = py_lua, python = py_lua, visual = { augend.integer.alias.decimal, augend.integer.alias.hex, augend.date.alias["%Y/%m/%d"], augend.constant.alias.alpha, augend.constant.alias.Alpha, }, } end EOF ```

Change the init.vim to init.lua

shubham-cpp commented 1 year ago
0a1
> let g:loaded_matchit = 1
17a19
> set background=dark
18a21
> let g:lion_squeeze_spaces = 1
38c41,42
< Plug 'tpope/vim-surround'
---
> "  Plug 'tpope/vim-surround'
> Plug 'tommcdo/vim-lion'
43a48,49
> Plug 'andymass/vim-matchup'
> Plug 'mg979/vim-visual-multi', {'branch':'master'}
44a51
> " Lua based
46a54,55
> Plug 'ggandor/leap.nvim'
> Plug 'kylechui/nvim-surround'
54c63
< set background=dark
---
>
60,112c69,132
<    " VsCode Any
<    map zh <Cmd>call VSCodeNotify('yo1dog.cursor-trim.lTrimCursor')<CR>
<    map zl <Cmd>call VSCodeNotify('yo1dog.cursor-trim.rTrimCursor')<CR>
<    map zi <Cmd>call VSCodeNotify('yo1dog.cursor-trim.trimCursor')<CR>
<    map ze <Cmd>call VSCodeNotify('scrollLineDown')<CR>
<    map zy <Cmd>call VSCodeNotify('scrollLineUp')<CR>
<    map [f <Cmd>call VSCodeNotify('workbench.view.search.focus')<CR>
<    map ]f <Cmd>call VSCodeNotify('workbench.action.replaceInFiles')<CR>
<    map gD <Cmd>call VSCodeNotify('editor.action.revealDefinitionAside')<CR>
<    map gr <Cmd>call VSCodeNotify('editor.action.goToReferences')<CR>
<    map [s <Cmd>call VSCodeNotify('editor.action.toggleStickyScroll')<CR>
<    map =< <Cmd>call VSCodeNotify('editor.action.trimTrailingWhitespace')<CR>
<    map gl <Cmd>call VSCodeNotify('editor.action.openLink')<CR>
<    xmap gc  <Plug>VSCodeCommentary
<    nmap gc  <Plug>VSCodeCommentary
<    omap gc  <Plug>VSCodeCommentary
<    nmap gcc <Plug>VSCodeCommentaryLine
<    map <C-d> 15jzz
<    map <C-u> 15kzz
<
<    vnoremap <leader>f <Cmd>call VSCodeNotifyRangePos('editor.action.formatSelection', line("v"), line("."), col("v"), col("."), 1)<CR>
<    nmap gb <Cmd>call VSCodeNotify('editor.action.addSelectionToNextFindMatch')<cr>
<
<    nnoremap <C-Up> <Cmd>call VSCodeNotify('editor.action.insertCursorAbove')<cr>
<    nnoremap <C-Down> <Cmd>call VSCodeNotify('editor.action.insertCursorBelow')<cr>
<    nnoremap <C-Right> <Cmd>call VSCodeNotify('workbench.action.nextEditor')<cr>
<    nnoremap <C-Left> <Cmd>call VSCodeNotify('workbench.action.previousEditor')<cr>
<
<    nnoremap <leader>o <Cmd>call VSCodeNotify('workbench.action.openRecent')<CR>
<    nnoremap ,w <Cmd>call VSCodeNotify('workbench.action.files.save')<cr>
<    nnoremap ,W <Cmd>call VSCodeNotify('workbench.action.files.saveWithoutFormatting')<cr>
<    nnoremap gh <Cmd>call VSCodeNotify('editor.action.showHover')<cr>
<
<    " VsCode Folding
<    map za <Cmd>call VSCodeNotify('editor.toggleFold')<CR>
<    map zC <Cmd>call VSCodeNotify('editor.foldAll')<CR>
<    map zO <Cmd>call VSCodeNotify('editor.unfoldAll')<CR>
<    map zp <Cmd>call VSCodeNotify('editor.gotoParentFold')<CR>
<
<
<    nnoremap <C-b> <Cmd>call VSCodeNotify('workbench.action.toggleSidebarVisibility')<cr>
<    nnoremap <C-j> <Cmd>call VSCodeNotify('workbench.action.terminal.toggleTerminal')<cr>
<    nnoremap <leader>gg <Cmd>call VSCodeNotify('workbench.view.scm')<cr>
<    nnoremap <leader>ge <Cmd>call VSCodeNotify('workbench.view.extensions')<cr>
<    nnoremap <leader>gs <Cmd>call VSCodeNotify('workbench.view.search.toggleVisibility')<cr>
<    nnoremap <leader>gf <Cmd>call VSCodeNotify('workbench.view.explorer')<cr>
<    nnoremap <leader>gk <Cmd>call VSCodeNotify('workbench.action.openGlobalKeybindings')<cr>
<    " VsCode Scrolling
<    map zl <Cmd>call VSCodeNotify('toggleTypewriter')<CR>
<    "  nnoremap <C-w><C-c> <Cmd>call VSCodeNotify('workbench.action.closeActiveEditor')<CR>k
<    imap <C-k> <Cmd>call VSCodeNotify('editor.action.insertLineBefore')<CR>
<    nnoremap <A-h> <Cmd>call VSCodeNotify('workbench.action.previousEditor')<cr>
<    nnoremap <A-l> <Cmd>call VSCodeNotify('workbench.action.nextEditor')<cr>
---
>   " VsCode Any
>   map zh <Cmd>call VSCodeNotify('yo1dog.cursor-trim.lTrimCursor')<CR>
>   map zl <Cmd>call VSCodeNotify('yo1dog.cursor-trim.rTrimCursor')<CR>
>   map zi <Cmd>call VSCodeNotify('yo1dog.cursor-trim.trimCursor')<CR>
>   map ze <Cmd>call VSCodeNotify('scrollLineDown')<CR>
>   map zy <Cmd>call VSCodeNotify('scrollLineUp')<CR>
>   map [f <Cmd>call VSCodeNotify('workbench.view.search.focus')<CR>
>   map ]f <Cmd>call VSCodeNotify('workbench.action.replaceInFiles')<CR>
>   map gD <Cmd>call VSCodeNotify('editor.action.revealDefinitionAside')<CR>
>   map gr <Cmd>call VSCodeNotify('editor.action.goToReferences')<CR>
>   map [s <Cmd>call VSCodeNotify('editor.action.toggleStickyScroll')<CR>
>   map =< <Cmd>call VSCodeNotify('editor.action.trimTrailingWhitespace')<CR>
>   map gl <Cmd>call VSCodeNotify('editor.action.openLink')<CR>
>   xmap gc  <Plug>VSCodeCommentary
>   nmap gc  <Plug>VSCodeCommentary
>   omap gc  <Plug>VSCodeCommentary
>   nmap gcc <Plug>VSCodeCommentaryLine
>   map <C-d> 15jzz
>   map <C-u> 15kzz
>
>   vnoremap <leader>f <Cmd>call VSCodeNotifyRangePos('editor.action.formatSelection', line("v"), line("."), col("v"), col("."), 1)<CR>
>   nmap gb <Cmd>call VSCodeNotify('editor.action.addSelectionToNextFindMatch')<cr>
>
>   "  nnoremap <C-Up> <Cmd>call VSCodeNotify('editor.action.insertCursorAbove')<cr>
>   "  nnoremap <C-Down> <Cmd>call VSCodeNotify('editor.action.insertCursorBelow')<cr>
>   nnoremap <C-Right> <Cmd>call VSCodeNotify('workbench.action.nextEditor')<cr>
>   nnoremap <C-Left> <Cmd>call VSCodeNotify('workbench.action.previousEditor')<cr>
>
>   nnoremap <leader>o <Cmd>call VSCodeNotify('workbench.action.openRecent')<CR>
>   nnoremap ,w <Cmd>call VSCodeNotify('workbench.action.files.save')<cr>
>   nnoremap ,W <Cmd>call VSCodeNotify('workbench.action.files.saveWithoutFormatting')<cr>
>   nnoremap gh <Cmd>call VSCodeNotify('editor.action.showHover')<cr>
>
>   " VsCode Folding
>   map za <Cmd>call VSCodeNotify('editor.toggleFold')<CR>
>   map zC <Cmd>call VSCodeNotify('editor.foldAll')<CR>
>   map zO <Cmd>call VSCodeNotify('editor.unfoldAll')<CR>
>   map zp <Cmd>call VSCodeNotify('editor.gotoParentFold')<CR>
>
>
>   nnoremap <C-b> <Cmd>call VSCodeNotify('workbench.action.toggleSidebarVisibility')<cr>
>   nnoremap <C-j> <Cmd>call VSCodeNotify('workbench.action.terminal.toggleTerminal')<cr>
>   nnoremap <leader>gg <Cmd>call VSCodeNotify('workbench.view.scm')<cr>
>   nnoremap <leader>ge <Cmd>call VSCodeNotify('workbench.view.extensions')<cr>
>   nnoremap <leader>gs <Cmd>call VSCodeNotify('workbench.view.search.toggleVisibility')<cr>
>   nnoremap <leader>gf <Cmd>call VSCodeNotify('workbench.view.explorer')<cr>
>   nnoremap <leader>gk <Cmd>call VSCodeNotify('workbench.action.openGlobalKeybindings')<cr>
>   " VsCode Scrolling
>   map zl <Cmd>call VSCodeNotify('toggleTypewriter')<CR>
>   "  nnoremap <C-w><C-c> <Cmd>call VSCodeNotify('workbench.action.closeActiveEditor')<CR>k
>   imap <C-k> <Cmd>call VSCodeNotify('editor.action.insertLineBefore')<CR>
>   nnoremap <A-h> <Cmd>call VSCodeNotify('workbench.action.previousEditor')<cr>
>   nnoremap <A-l> <Cmd>call VSCodeNotify('workbench.action.nextEditor')<cr>
>   nnoremap <A-j> <cmd>call VSCodeNotify('editor.action.moveLinesDownAction')<cr>
>   nnoremap <A-k> <cmd>call VSCodeNotify('editor.action.moveLinesUpAction')<cr>
>
>   let g:VM_maps = {}
>   let g:VM_maps["Select Cursor Down"] = '<C-Down>'      " start selecting down
>   let g:VM_maps["Select Cursor Up"]   = '<C-Up>'        " start selecting up
>
>
>   inoremap <C-Up> <Cmd>call VSCodeNotify('editor.action.insertCursorAbove')<cr>
>   inoremap <C-Down> <Cmd>call VSCodeNotify('editor.action.insertCursorBelow')<cr>
>
114,118c134,159
<    noremap <C-f> <C-f>zz
<    noremap <C-b> <C-b>zz
<    map <C-d> 12jzz
<    map <C-u> 12kzz
<    nnoremap zp vaBo^<Esc>
---
>
>   nnoremap <A-j> mz:m+<cr>`z
>   nnoremap <A-k> mz:m-2<cr>`z
>   noremap <C-f> <C-f>zz
>   noremap <C-b> <C-b>zz
>   map <C-d> 12jzz
>   map <C-u> 12kzz
>   nnoremap zp vaBo^<Esc>
>
>
>   let g:VM_maps = {}
>   let g:VM_mouse_mappings             = 1
>   let g:VM_maps['Find Under']         = '<C-n>'         " replace C-n
>   let g:VM_maps['Find Subword Under'] = '<C-n>'         " replace visual C-n
>   let g:VM_maps["Select Cursor Down"] = '<C-Down>'      " start selecting down
>   let g:VM_maps["Select Cursor Up"]   = '<C-Up>'        " start selecting up
>   let g:VM_maps["Undo"]               = 'u'
>   let g:VM_maps["Redo"]               = '<C-r>'
>   let g:VM_leader                     = ','
>   let g:VM_maps["Select All"]         = '\\A'           " '\\' are meant to be g:VM_leader
>   let g:VM_maps["Start Regex Search"] = '\\/'
>   let g:VM_maps["Visual Regex"]       = '\\/'
>   let g:VM_maps["Visual All"]         = '\\A'
>   let g:VM_maps["Visual Add"]         = '\\a'
>   let g:VM_maps["Visual Find"]        = '\\f'
>   let g:VM_maps["Visual Cursors"]     = '\\c'
124,126c165,167
< nmap s <plug>(SubversiveSubstitute)
< nmap ss <plug>(SubversiveSubstituteLine)
< nmap S <plug>(SubversiveSubstituteToEndOfLine)
---
> nmap x <plug>(SubversiveSubstitute)
> nmap xx <plug>(SubversiveSubstituteLine)
> nmap X <plug>(SubversiveSubstituteToEndOfLine)
147,148d187
< nnoremap <A-j> mz:m+<cr>`z
< nnoremap <A-k> mz:m-2<cr>`z
225c264,276
< EOF
\ No newline at end of file
---
> local ok_leap, leap = pcall(require,'leap')
> if ok_leap then
>    leap.add_default_mappings()
> end
>
> local ok_surround, surround = pcall(require,'nvim-surround')
> if ok_surround then
>    surround.setup({})
> end
>
> EOF
>
>
shubham-cpp commented 5 months ago

keybindings.json

```jsonc // Place your key bindings in this file to override the defaults [ { "key": "ctrl+d", "command": "editor.action.addSelectionToNextFindMatch", "when": "neovim.mode == insert && editorFocus" }, { "key": "ctrl+shift+d", "command": "editor.action.previousSelectionMatchFindAction", "when": "neovim.mode == insert && editorFocus" }, { "key": "ctrl+x", "command": "editor.action.moveSelectionToNextFindMatch", "when": "neovim.mode == insert && editorFocus" } ] ```