Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- noremap j gj
- noremap k gk
- inoremap jk <ESC>
- " map space as leader key
- let mapleader=" "
- nnoremap <SPACE> <Nop>
- " tab open action
- nmap <tab> :action NextSplitter<CR>
- nmap <leader>h :action PreviousTab<CR>
- nmap <leader>l :action NextTab<CR>
- nmap <leader>e :action RecentChangedFiles<CR>
- nmap <leader>fe :action RecentFiles<CR>
- nmap <leader>fx :action CloseEditor<CR>
- nmap <leader>fs :action Switcher<CR>
- nmap <leader>fd :action GoToLastTab<CR>
- nmap <leader>fw :action SaveDocument<CR>
- nmap <leader>fa :action SelectInProjectView<CR>
- nmap <leader>fl :nohls<CR>
- " built in search looks better
- " nnoremap / :action Find<cr>
- " but preserve ideavim search
- " nnoremap g/ /
- " enter newlines
- nnoremap <CR> o<ESC>
- inoremap <CR> <C-o>:action EditorEnter<CR>
- " move with control arrow key
- nnoremap <C-Up> :action MethodUp<CR>
- nnoremap <C-Down> :action MethodDown<CR>
- "inoremap <C-Up> <C-O>:action MethodUp<CR>
- "inoremap <C-Down> <C-O>:action MethodDown<CR>
- " open declaration in new split tab
- nnoremap <C-]> :action GotoDeclaration<CR>
- "inoremap <C-]> <ESC>:action GotoDeclaration<CR> <BAR> :action SplitVertically<CR> <BAR> :action NextTab<CR> <BAR> :action EditorToggleInsertState<CR>
- " select with arrow key
- nnoremap <S-Left> :action EditorLeftWithSelection<CR>
- nnoremap <S-Right> :action EditorRightWithSelection<CR>
- nnoremap <S-Up> :action EditorUpWithSelection<CR>
- nnoremap <S-Down> :action EditorDownWithSelection<CR>
- inoremap <S-Left> <C-O>:action EditorLeftWithSelection<CR>
- inoremap <S-Right> <C-O>:action EditorRightWithSelection<CR>
- inoremap <S-Up> <C-O>:action EditorUpWithSelection<CR>
- inoremap <S-Down> <C-O>:action EditorDownWithSelection<CR>
- " enable options
- set surround
- set hlsearch
- set incsearch
- set ignorecase smartcase
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement