Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.ideavim #15

Closed
senelway opened this issue Mar 30, 2023 · 1 comment
Closed

.ideavim #15

senelway opened this issue Mar 30, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@senelway
Copy link
Owner

senelway commented Mar 30, 2023

"" Source your .vimrc
"source ~/.vimrc
set ideajoin
Plug 'easymotion/vim-easymotion'

set scrolloff=5
let mapleader=" "

" Do incremental searching.
set incsearch
set multiple-cursors
set surround
set commentary
set clipboard+=unnamed
set relativenumber number
set NERDTree
set autoindent

let g:NERDTreeMapActivateNode='l'
let g:NERDTreeJumpParent='h'

map Q g

" yank/paste to/from system clipboard
map <leader>y "*y
map <leader>p "*p

" window manager
nnoremap <TAB> :action NextTab<CR>
nnoremap <s-TAB> :action PreviousTab<CR>
nnoremap <C-k> :action NextTabWindow <CR>
nnoremap <C-k> :action NextWindowTab <CR>
nnoremap <C-k> :action NextProjectTab <CR>

nnoremap <S-\> :action SplitVertically<CR>
nnoremap <S-]> :action SplitHorizontally<CR>
nnoremap <S-=> :action Unsplit<CR>
" window manager

nnoremap <S-Left> :action EditorLeftWithSelection<CR>
nnoremap <S-Right> :action EditorRightWithSelection<CR>
nnoremap <S-Up> :action EditorUpWithSelection<CR>
nnoremap <S-Down> :action EditorDownWithSelection<CR>

nnoremap <leader>ra :action RenameElement<CR>
nnoremap <leader>ff :action SearchEverywhere<CR>
nnoremap <leader>fw :action FindInPath<CR>
nnoremap <leader>fm :action ReformatCode<CR>
nnoremap <leader>rt :action Refactorings.QuickListPopupAction<CR>
nnoremap <leader>gb :action RecentLocations<CR>
nnoremap <leader>qi :action ShowIntentionActions<CR>


" move cursor in editor mode
imap <C-h> :action EditorLeft <CR>
imap <C-l> :action EditorRight <CR>
imap <C-j> :action EditorUp <CR>
imap <C-k> :action EditorDown <CR>
" move cursor in editor mode

nnoremap <leader>/ :action CommentByLineComment <CR>
nnoremap <leader>e :NERDTree<CR>
nnoremap <leader>i :action ActivateTerminalToolWindow<CR>

nnoremap gr :action ShowUsages<CR>
nnoremap ge :action ShowErrorDescription<CR>
nnoremap gh :action QuickJavaDoc<CR>
nnoremap gd :action GotoDeclaration<CR>
nnoremap gi :action GotoImplementation<CR>
nnoremap ]d :action GotoNextError<CR>
nnoremap [d :action GotoPreviousError<CR>
nnoremap [[ :action MethodUp<CR>
nnoremap ]] :action MethodDown<CR>

nnoremap ; :
nnoremap qq :x <CR>
set timeoutlen=500

imap jj <esc>
set timeoutlen=500
imap jk <Esc>
set timeoutlen=500
@senelway senelway added the documentation Improvements or additions to documentation label Mar 30, 2023
@senelway senelway pinned this issue Mar 30, 2023
@senelway
Copy link
Owner Author

senelway commented Apr 6, 2023

did ln 61faba9

@senelway senelway closed this as completed Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant