Last active
          January 21, 2024 17:04 
        
      - 
      
 - 
        
Save fulcain/04fc61e0020ab9f97088ae9150ac223f to your computer and use it in GitHub Desktop.  
    Vim related settings in vscode
  
        
  
    
      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
    
  
  
    
  | { | |
| //exludes fies & folders in search indexing | |
| "search.exclude": { | |
| "**/node_modules": true, | |
| "**/bower_components": true, | |
| "**/env": true, | |
| "**/venv": true | |
| }, | |
| //exludes fies & folders for watcher service | |
| "files.watcherExclude": { | |
| "**/.git/objects/**": true, | |
| "**/.git/subtree-cache/**": true, | |
| "**/node_modules/**": true, | |
| "**/env/**": true, | |
| "**/venv/**": true, | |
| "env-*": true | |
| }, | |
| "terminal.integrated.env.windows": {}, | |
| "[javascript]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "editor.stickyTabStops": true, | |
| "editor.tabCompletion": "on", | |
| "editor.wordWrap": "on", | |
| "prettier.tabWidth": 4, | |
| "[jsonc]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "[typescript]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "files.autoSave": "onFocusChange", | |
| "[html]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "[css]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "liveServer.settings.donotShowInfoMsg": true, | |
| "liveServer.settings.donotVerifyTags": true, | |
| "[javascriptreact]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "grammarly.files.include": [ | |
| "**/readme.md", | |
| "**/README.md", | |
| "**/*.txt", | |
| "**/*.js", | |
| "**/*.jsx", | |
| "**/*.ts", | |
| "**/*.tsx" | |
| ], | |
| "[json]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "[typescriptreact]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "cSpell.userWords": [ | |
| "Classname", | |
| "fulcain", | |
| "gilili", | |
| "Hashid", | |
| "informations", | |
| "jalali", | |
| "jasem", | |
| "kobra", | |
| "latlng", | |
| "majid", | |
| "neshan", | |
| "qojqva", | |
| "swiper", | |
| "tonrow", | |
| "tooman", | |
| "usefull", | |
| "موجودی" | |
| ], | |
| "hediet.vscode-drawio.resizeImages": null, | |
| "remote.SSH.remotePlatform": { | |
| "sandbox.6m64pn.csb": "linux" | |
| }, | |
| "[scss]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "rapidapi.terminalLink.enabled": false, | |
| "window.titleBarStyle": "custom", | |
| "workbench.iconTheme": "eq-material-theme-icons", | |
| "workbench.preferredDarkColorTheme": "Material Theme Darker High Contrast", | |
| "workbench.preferredHighContrastColorTheme": "Material Theme Darker High Contrast", | |
| "[vue]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "[markdown]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "editor.fontFamily": "'Droid Sans Mono', Source Code Pro, FiraCode Nerd font, Consolas, 'Courier New', monospace", | |
| "workbench.colorTheme": "Eva Dark", | |
| "workbench.sideBar.location": "right", | |
| "explorer.compactFolders": false, | |
| "editor.minimap.enabled": false, | |
| "breadcrumbs.enabled": false, | |
| "editor.renderWhitespace": "all", | |
| "editor.stickyScroll.enabled": true, | |
| "workbench.layoutControl.enabled": false, | |
| "window.commandCenter": false, | |
| "workbench.startupEditor": "none", | |
| "window.menuBarVisibility": "compact", | |
| "editor.lineNumbers": "relative", | |
| "zenMode.hideLineNumbers": false, | |
| "editor.cursorBlinking": "solid", | |
| // vim related configs | |
| "vim.leader": "<space>", | |
| "vim.easymotion": true, | |
| "vim.incsearch": true, | |
| "vim.useCtrlKeys": true, | |
| "vim.hlsearch": true, | |
| "vim.useSystemClipboard": true, | |
| "extensions.experimental.affinity": { | |
| "vscodevim.vim": 1 | |
| }, | |
| "vim.handleKeys": { | |
| "<C-a>": false, | |
| "<C-f>": false | |
| }, | |
| "vim.normalModeKeyBindings": [ | |
| // Peek Definition | |
| { | |
| "before": ["g", "p", "d"], | |
| "commands": ["editor.action.peekDefinition"] | |
| }, | |
| // Show Hover * | |
| { | |
| "before": ["g", "h"], | |
| "commands": ["editor.action.showDefinitionPreviewHover"] | |
| }, | |
| // Go to Implementations | |
| { | |
| "before": ["g", "i"], | |
| "commands": ["editor.action.goToImplementation"] | |
| }, | |
| // Peek Implementations | |
| { | |
| "before": ["g", "p", "i"], | |
| "commands": ["editor.action.peekImplementation"] | |
| }, | |
| // Quick fix (open the code action lightbulb menu)Quick fix | |
| { | |
| "before": ["g", "q"], | |
| "commands": ["editor.action.quickFix"] | |
| }, | |
| // Go to References | |
| { | |
| "before": ["g", "r"], | |
| "commands": ["editor.action.referenceSearch.trigger"] | |
| }, | |
| // Go to Type Definition | |
| { | |
| "before": ["g", "t"], | |
| "commands": ["editor.action.goToTypeDefinition"] | |
| }, | |
| // Peek Type Definition | |
| { | |
| "before": ["g", "p", "t"], | |
| "commands": ["editor.action.peekTypeDefinition"] | |
| }, | |
| { | |
| "before": ["<C-d>"], | |
| "after": ["<C-d>", "z", "z"] | |
| }, | |
| { | |
| "before": ["<C-u>"], | |
| "after": ["<C-u>", "z", "z"] | |
| }, | |
| { | |
| "before": ["n"], | |
| "after": ["n", "z", "z", "z", "v"] | |
| }, | |
| { | |
| "before": ["N"], | |
| "after": ["N", "z", "z", "z", "v"] | |
| }, | |
| { | |
| "before": ["C-c"], | |
| "after": ["<Esc>"] | |
| }, | |
| // for visual mode | |
| { | |
| "before": ["<leader>", "d"], | |
| "after": ["\"", "_", "d"] | |
| }, | |
| { | |
| "before": ["<leader>", "y"], | |
| "after": ["\"", "+", "y"] | |
| }, | |
| { | |
| "before": ["<leader>", "Y"], | |
| "after": ["\"", "+", "Y"] | |
| }, | |
| // I have my <C-v> bound to paste from clipboard sooo... | |
| { | |
| "before": ["<Tab>"], | |
| "after": ["<C-V>"] | |
| }, | |
| // Delete the line without copping the text | |
| { | |
| "before": ["<leader>", "d"], | |
| "command": "editor.action.deleteLines", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "before": ["<leader>", "d"], | |
| "command": "deleteAllLeft", | |
| "when": "editorTextFocus && editorHasSelection && !editorReadonly" | |
| } | |
| ], | |
| "vim.visualModeKeyBindings": [ | |
| { | |
| "before": ["<leader>", "p"], | |
| "after": ["[", "[", "\"", "_", "d", "P", "]", "]"] | |
| }, | |
| { | |
| "before": ["<leader>", "d"], | |
| "after": ["\"", "_", "d"] | |
| }, | |
| { | |
| "before": ["<leader>", "p"], | |
| "after": ["\"", "_", "d", "P"] | |
| }, | |
| { | |
| "before": ["<leader>", "y"], | |
| "after": ["\"", "+", "y"] | |
| } | |
| ], | |
| // usefull vscode configs | |
| "editor.cursorSurroundingLines": 8, | |
| "editor.wordSeparators": "`~!@#$%^&*()=+[{]}\\|;:'\",.<>/?", | |
| "editor.tokenColorCustomizations": { | |
| "textMateRules": [ | |
| { | |
| "name": "envKeys", | |
| "scope": "string.quoted.single.ini,constant.numeric.ini,string.quoted.double.ini", | |
| "settings": { | |
| "foreground": "#19354900" | |
| } | |
| }, | |
| { | |
| "name": "envKeys", | |
| "scope": "string.quoted.single.ini,constant.numeric.ini,string.quoted.double.ini", | |
| "settings": { | |
| "foreground": "#19354900" | |
| } | |
| } | |
| ] | |
| }, | |
| "window.zoomLevel": 2, | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment