65 lines
1.5 KiB
Plaintext
65 lines
1.5 KiB
Plaintext
" Base settings
|
|
set scrolloff=10
|
|
set linenumber
|
|
set relativenumber
|
|
set showmode
|
|
set notimeout
|
|
|
|
set showcmd
|
|
set visualbell
|
|
set clipboard+=unnamed
|
|
|
|
set hlsearch
|
|
set incsearch
|
|
set ignorecase
|
|
set smartcase
|
|
|
|
let mapleader = " "
|
|
|
|
" Plugins
|
|
Plug 'easymotion/vim-easymotion'
|
|
Plug 'preservim/nerdtree'
|
|
Plug 'tpope/vim-surround'
|
|
Plug 'tpope/vim-commentary'
|
|
Plug 'machakann/vim-highlightedyank'
|
|
|
|
" Action and plugin bindings
|
|
vnoremap < <gv
|
|
vnoremap > >gv
|
|
|
|
" Map H and L to move between tabs
|
|
nmap H <Action>(NextTab)
|
|
nmap L <Action>(PreviousTab)
|
|
|
|
nmap s <Plug>(easymotion-s)
|
|
nmap <leader>e <Plug>(NERDtree)
|
|
|
|
" Code handling (commenting, renaming, refactoring etc)
|
|
" nmap <leader>cc <Action>(CommentByLineComment)
|
|
" nmap <leader>cr <Action>(
|
|
|
|
" 'GOTO' commands
|
|
nmap <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>gb <Action>(Back)
|
|
nmap <leader>gf <Action>(Forward)
|
|
|
|
" (open) File management
|
|
nmap <leader>ff <Action>(GotoFile)
|
|
nmap <leader>/ <Action>(FindInPath)
|
|
|
|
" Buffer (tab) management
|
|
nmap <leader>bd <Action>(CloseContent)
|
|
nmap <leader>br <Action>(CloseAllToTheRight)
|
|
nmap <leader>bl <Action>(CloseAllToTheLeft)
|
|
nmap <leader>bo <Action>(CloseEditorsButActive)
|
|
nmap <leader>bp <Action>(PinActiveTab)
|
|
|
|
" Project management
|
|
nmap <leader>po <Action>(ProjectViewPopupMenuSettingsGroup)
|
|
|
|
nmap <leader>vr <Action>(IdeaVim.ReloadVimRc.reload)
|
|
nmap <leader>va <Action>(VimFindActionIdAction) |