How to allow scrolling bottom lines of the file to top of the screen #794
-
Actually I don't know how to describe this feature. In vim/neovim, file can scroll from: to: by pressing But in ideavim I can't continue to scroll up, seems the height of bottom empty area is limited. Similar shortcuts like Is there any config to enable this? This way I can look straight at the cursor without lowering my head (My poor neck 😢)
My ideavimrc: set scrolloff=5
set scroll=10
" Do incremental searching.
set incsearch
set nu
set rnu
set ruler
set hls
set clipboard+=unnamed
set clipboard+=idea
" IdealVim icon in status bar, bottom right conor.
" enabled/gray/disabled
set ideastatusicon=gray
" Keymap compatible with neovim lsp-config
" vim.diagnostic.open_float
map <space>e <Action>(ShowErrorDescription)
" vim.lsp.buf.rename
map <space>rn <Action>(RenameElement)
" <Cmd>CodeActionMenu<CR>
map <space>ca <Action>(ShowIntentionActions)
" vim.diagnostic.goto_prev
map [d <Action>(GotoPreviousError)
" vim.diagnostic.goto_next
map ]d <Action>(GotoNextError)
" vim.keymap.set('n', '<A-i>', '<CMD>lua require("FTerm").toggle()<CR>')
map <A-i> <Action>(ActivateTerminalToolWindow)
" Don't use Ex mode, use Q for formatting.
map Q gq
"" -- 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
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is an IDE setting. Go to preferences and search for "virtual space". You should find a setting that allows adding virtual space to the end of the file. If you enable this, it will behave very much like Vim. |
Beta Was this translation helpful? Give feedback.
This is an IDE setting. Go to preferences and search for "virtual space". You should find a setting that allows adding virtual space to the end of the file. If you enable this, it will behave very much like Vim.