You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
" SEE https://www.cyberwizard.io/posts/the-ultimate-ideavim-setup/""" Map leader to space ---------------------let mapleader=""""" Plugins --------------------------------set quickscope
Plugin'preservim/nerdtree'"Plugin 'easymotion/vim-easymotion'Plugin'tpope/vim-surround'Plugin'tpope/vim-commentary'set which-keysetnotimeoutset sneak
"" -- Suggested options --" 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.setscrolloff=5" Do incremental searching.setincsearch" Don't use Ex mode, use Q for formatting.mapQgq"" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t"" Map \r to the Reformat Code action"map \r <Action>(ReformatCode)"" Map <leader>d to start debug"map <leader>d <Action>(Debug)"" Map \b to toggle the breakpoint on the current line"map \b <Action>(ToggleLineBreakpoint)" Find more examples here: https://jb.gg/share-ideavimrc" options and mappings that are supported by both Vim and IdeaVimsetnusetrelativenumbersetignorecasesetsmartcasesetincsearch"set hlsearch" Tab navigationnnoremap<A-n>:tabnext<CR>nnoremap<A-p>:tabprev<CR>" Pane navigationnnoremap<A-h><C-w>hnnoremap<A-l><C-w>lnnoremap<A-k><C-w>knnoremap<A-j><C-w>j" Easy visual indentationvnoremap<<gvvnoremap>>gv" Comment linesmap<leader>c <action>(CommentByLineComment)" Open NERDTree (use q to exit)map<leader>x :NERDTreeToggle<CR>ifhas('ide')
setshowmodesetshowcmdsetclipboard+=unnamed
" mappings and options that exist only in IdeaVimmap<leader>? <Action>(RecentFiles)map<leader><space><Action>(Switcher)map<leader>sf <Action>(GotoFile)map<leader>sg <Action>(FindInPath)map<leader>b <Action>(Switcher)mapgd<Action>(QuickTypeDefinition)mapgD<Action>(GotoDeclaration)" Window splitsmap<leader>wv <Action>(SplitVertically)map<leader>ws <Action>(SplitHorizontally)map<leader>wu <Action>(Unsplit)map<leader>wm <Action>(MoveEditorToOppositeTabGroup)" Display optionsmap<leader>dd <Action>(ToggleDistractionFreeMode)map<leader>dz <Action>(ToggleZenMode)map<leader>df <Action>(ToggleFullScreen)" Actionsmap<leader>am <Action>(ShowIntentionActions)map<leader>as <Action>(SearchEverywhere)" Close active tabmap<leader>q <Action>(CloseContent)" Refactoringmap<leader>rn <Action>(RenameElement)map<leader>rm <Action>(ExtractMethod)map<leader>rv <Action>(IntroduceVariable)map<leader>rf <Action>(IntroduceField)map<leader>rs <Action>(ChangeSignature)map<leader>rr <Action>(Refactorings.QuickListPopupAction)" Go to codenmap<leader>gd <Action>(GotoDeclaration)nmap<leader>gy <Action>(GotoTypeDeclaration)nmap<leader>gi <Action>(GotoImplementation)nmap<leader>gu <Action>(ShowUsages)nmap<leader>gt <Action>(GotoTest)nmap<leader>gf <Action>(Back)nmap<leader>gb <Action>(Forward)" Git windowsmap<leader>gc <Action>(CheckinProject)map<leader>gs <Action>(ActivateVersionControlToolWindow)map<leader>gb <Action>(Git.Branches)" Terminalmap<leader>t :shell<CR>if &ide =~? 'intellij idea'if &ide =~? 'community'" some mappings and options for IntelliJ IDEA Community Editionelseif &ide =~? 'ultimate'" some mappings and options for IntelliJ IDEA Ultimate Editionendifelseif &ide =~? 'pycharm'" PyCharm specific mappings and optionendifelse" some mappings for Vim/Neovimnnoremap<leader>sf <cmd>Telescope find_files<cr>endif--@see https://github.com/ThePrimeagen/init.lua/blob/master/lua/theprimeagen/remap.lua-- recenter after moving up/down next/previoussearch result
map<C-d><C-d>zzmap<C-u><C-u>zzmapnnzzzvmapNNzzzv-- greatest remap ever
--map"x","<leader>p", [["_dP]])--next greatest remap ever : asbjornHaland
map<leader>y "+ymap<leader>Y "+Ymap<leader>d "_dmap<leader>f <Action>(ReformatCode)map"n","<C-k>", "<cmd>cnext<CR>zz")map"n","<C-j>", "<cmd>cprev<CR>zz")map"n","<leader>k", "<cmd>lnext<CR>zz")map"n","<leader>j", "<cmd>lprev<CR>zz")
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: