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
It seems that the S key of the vim-surround plugin is not working and is still mapped to vim's own S key behavior.
Version: 2.21.0
.ideavimrc
" wiki https://github.com/JetBrains/ideavim/wiki
" Map leader to space ---------------------
let mapleader=" "
" Plugins --------------------------------
set argtextobj
let g:argtextobj_pairs="[:],(:),<:>,[:],':',\":\",`:`"
set surround
set NERDTree
set easymotion
set multiple-cursors
set quickscope
" sneak
" Type s and two chars to start sneaking in forward direction
" Type S and two chars to start sneaking in backward direction
" Type ; or , to proceed with sneaking just as if you were using f or t commands
" Plug 'justinmk/vim-sneak'
set highlightedyank
let g:highlightedyank_highlight_color = "rgba(160, 160, 160, 155)"
" Common settings -------------------------
set keep-english-in-normal
set showmode
set number
set cursorline
set hlsearch
set incsearch
set visualbell
set smartcase
" Idea specific settings ------------------
set ideajoin
set ideastatusicon=gray
set idearefactormode=keep
set clipboard+=ideaput
nmap <Up> <Nop>
nmap <Down> <Nop>
nmap <Left> <Nop>
nmap <Right> <Nop>
" Plug -----------------------------
" map <leader>m <Plug>:NERDTreeToggle<CR>
" map <leader>n <Plug>:NERDTreeFocus<CR>
" multiple cursors
" Remap multiple-cursors shortcuts to match terryma/vim-multiple-cursors
nmap <C-n> <Plug>NextWholeOccurrence
xmap <C-n> <Plug>NextWholeOccurrence
nmap g<C-n> <Plug>NextOccurrence
xmap g<C-n> <Plug>NextOccurrence
xmap <C-x> <Plug>SkipOccurrence
xmap <C-p> <Plug>RemoveOccurrence
" Note that the default <A-n> and g<A-n> shortcuts don't work on Mac due to dead keys.
" <A-n> is used to enter accented text e.g. ñ
" Feel free to pick your own mappings that are not affected. I like to use <leader>
nmap <leader><C-n> <Plug>AllWholeOccurrences
xmap <leader><C-n> <Plug>AllWholeOccurrences
nmap <leader>g<C-n> <Plug>AllOccurrences
xmap <leader>g<C-n> <Plug>AllOccurrences
" helix mapping like------------------------------------
" movement
nmap <C-i> <Action>(Forward)
nmap <C-o> <Action>(Back)
" goto mode -----------------------------------------
nmap gd <Action>(GotoDeclaration)
nmap gi <Action>(GotoImplementation)
map gR <Action>(FindUsages)
map gr <Action>(ShowUsages)
nmap gy <Action>(GotoSuperMethod)
" previous/next tab
map gp <Action>(PreviousTab)
map gn <Action>(NextTab)
map gs ^
map gl $
map ge G
" NOTE:
" RecentChangedFiles displays list of edited files. To show all, press C-e
" or you can simply show a list of all files
" nmap <leader>B <Action>(GotoFile)
map gw <Plug>(easymotion-bd-w)
"unimpaired https://github.com/tpope/vim-unimpaired
nmap [d <Action>(GotoNextError)
nmap ]d <Action>(GotoPreviousError)
nmap [f <Action>(MethodUp)
nmap ]f <Action>(MethodDown)
nmap [g <Action>(VcsShowNextChangeMarker)
nmap ]g <Action>(VcsShowPrevChangeMarker)
map [p <Action>(EditorForwardParagraph)
map ]p <Action>(EditorBackwardParagraph)
map [P <Action>(EditorForwardParagraphWithSelection)
map ]P <Action>(EditorBackwardParagraphWithSelection)
" space mode -------------------------------
map <leader>r <Action>(RenameElement)
map <leader>a <Action>(ShowIntentionActions)
map <leader>S <Action>(GotoSymbol)
map <leader>s <Action>(FileStructurePopup)
" OR alternatively
" :nmap <leader>s <Action>(GotoSymbol)
map <leader>F <Action>(FindInPath)
map <leader>f <Action>(GotoFile)
map <leader>b <Action>(RecentFiles)
map <leader>? <Action>(SearchEverywhere)
map <leader>k <Action>(QuickJavaDoc)
map <leader>w <c-w>
map <leader>h <Action>(CopyReferencePopupGroup)
map <leader>e <Action>(Refactorings.QuickListPopupAction)
" helix match ----------------------------------
" mm Goto matching bracket
nmap mm %
" ms Surround add
nmap ms ysiw
" mr Surround replace
nmap mr cs
" md Surround delete
nmap md ds
" ma Select around object
nmap ma va
" mi Select inside object
nmap mi vi
" helix other ----------------------------------
nmap <c-c> <Action>(CommentByLineComment)
vmap s <Action>(Find)
" Alt+s - adds a caret at the end of each selected line
map <s-c> <Action>(EditorCloneCaretBelow)
" Move line up / down
map <a-up> <Action>(MoveLineUp)
map <a-k> <a-up>
map <a-down> <Action>(MoveLineDown)
map <a-j> <a-down>
" Duplicate line
map <a-s-down> <Action>(EditorDuplicate)
map <a-s-j> <a-s-down>
" Extend selection / shrink selection
map <a-o> <Action>(EditorSelectWord)
map <a-i> <Action>(EditorUnSelectWord)
" make x a line selection (READ WARNING below)
nmap x V
vmap x j
" Mappings Idea Action --------------------------------
map <leader>= <Action>(ReformatCode)
map <leader><CR> <Action>(EditorStartNewLine)
map <leader>o <Action>(OptimizeImports)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It seems that the
S
key of the vim-surround plugin is not working and is still mapped to vim's ownS
key behavior.Version: 2.21.0
.ideavimrc
Beta Was this translation helpful? Give feedback.
All reactions