Menu

Test2

Roger Cuddy

let mapleader=" "

set relativenumber
set number
set hlsearch
set incsearch
set ignorecase
set smartcase
set showmode
set wrapscan
set scrolloff=5
set history=10000
set undolevels=2000
set clipboard+=unnamed

" plugins
set easymotion
set surround
set commentary
set ReplaceWithRegister

" Resource ideavimrc
noremap \e :e c:\users\roger.ideavimrc<cr>
noremap \r :action IdeaVim.ReloadVimRc.reload<cr>
nnoremap <c-z> :action ToggleDistractionFreeMode<cr>
nnoremap <c-t> :action ActivateTerminalToolWindow<cr>
noremap <c-t> :Action OpenInTerminal<cr></cr></c-t></cr></c-t></cr></c-z></cr></cr>

" move between windows
map <c-j> <c-w>j
map <c-k> <c-w>k
map <c-h> <c-w>h
map <c-l> <c-w>l</c-w></c-l></c-w></c-h></c-w></c-k></c-w></c-j>

"turn off hlsearch
nmap <silent> <bs> :nohlsearch<cr>
nmap <silent> <m-bs> :nohlsearch<cr>
"turn on magic for searches
nnoremap / /\v</cr></m-bs></silent></cr></bs></silent>

nnoremap <bs> :nohlsearch<cr></cr></bs>

nnoremap g; :action LastChange<enter>
nnoremap g, :action NextChange<enter></enter></enter>

nnoremap zC :action CollapseRegionRecursively<cr>
nnoremap zO :action ExpandRegionRecursively<cr></cr></cr>

fun! TrimWhitespace()
%s/\s+$//e
endfun

noremap ,st : call TrimWhitespace()<cr></cr>

vmap <tab> >gv
vmap <s-tab> <gv</s-tab></tab>

nnoremap Y y$

nmap S <action>(Find)
nmap s <action>(Find)
vmap S <action>(Find)
vmap s <action>(Find)</action></action></action></action>

cnoremap <c-a> <home>
cnoremap <c-e> <end>
cnoremap <c-b> <left>
cnoremap <c-f> <right>
cnoremap <c-d>
cnoremap <c-n> <down>
cnoremap <c-p> <up></up></c-p></down></c-n>
</c-d></right></c-f></left></c-b></end></c-e></home></c-a>

inoremap <c-a> <home>
inoremap <c-e> <end>
inoremap <c-b> <left>
inoremap <c-f> <right>
inoremap <c-d>
inoremap <c-n> <down>
inoremap <c-p> <up></up></c-p></down></c-n>
</c-d></right></c-f></left></c-b></end></c-e></home></c-a>

nmap <c-k> <action>(GotoPreviousError)
nmap <c-j> <action>(GotoNextError)
nmap <c-e> <action>(GotoNextError)
nmap <c-e> <action>(GotoPreviousError)
nmap <c-n> <action>(NextTab)
nmap <c-p> <action>(PreviousTab)</action></c-p></action></c-n></action></c-e></action></c-e></action></c-j></action></c-k>

nmap <c-i> <action>(Forward)
nmap <c-o> <action>(Back)</action></c-o></action></c-i>

nmap <leader>1 <action>(GoToTab1)
nmap <leader>2 <action>(GoToTab2)
nmap <leader>3 <action>(GoToTab3)
nmap <leader>4 <action>(GoToTab4)
nmap <leader>5 <action>(GoToTab5)
nmap <leader>6 <action>(GoToTab6)
nmap <leader>7 <action>(GoToTab7)
nmap <leader>8 <action>(GoToTab8)
nmap <leader>9 <action>(GoToTab9)</action></leader></action></leader></action></leader></action></leader></action></leader></action></leader></action></leader></action></leader></action></leader>

nmap <leader><tab> <action>(GotoAction)
xmap <leader><tab> <action>(GotoAction)
omap <leader><tab> <action>(GotoAction)</action></tab></leader></action></tab></leader></action></tab></leader>

nmap <leader>= <action>(ReformatCode)</action></leader>

nmap <leader>bd <action>(CloseContent)
nmap <leader>bh <action>(LocalHistory.ShowHistory)
nmap <leader>bo <action>(CloseAllEditorsButActive)
nmap <leader>bw <action>(CloseEditor)</action></leader></action></leader></action></leader></action></leader>

nmap <leader>c<space> <action>(CommentByLineComment)
vmap <leader>c<space> <action>(CommentByLineComment)</action></space></leader></action></space></leader>

nmap <leader>ff <action>(GotoFile)
nmap <leader>fh <action>(RecentFiles)
nmap <leader>fs <action>(RecentChangedFiles)</action></leader></action></leader></action></leader>

nmap <leader>gb <action>(Annotate)
nmap <leader>gd <action>(Compare.LastVersion)
nmap <leader>gf <action>(Git.Fetch)
nmap <leader>gg <action>(GotoFile)
nmap <leader>gm <action>(Git.Merge)
nmap <leader>gl <action>(Git.Pull)
nmap <leader>gs <action>(ActivateVersionControlToolWindow)
nmap <leader>gv <action>(LocalHistory.ShowHistory)</action></leader></action></leader></action></leader></action></leader></action></leader></action></leader></action></leader></action></leader>

nmap <leader>jd <action>(GotoDeclarationOnly)
nmap <leader>jj <action>(GotoImplementation)
nmap <leader>js <action>(GotoSuperMethod)
nmap <leader>jr <action>(ShowUsages)</action></leader></action></leader></action></leader></action></leader>

nmap <leader>sa <action>(FindInPath)
nmap <leader>sg <action>(FindInPath)
nmap <leader>sr <action>(FindInPath)</action></leader></action></leader></action></leader>

nmap <leader>tt <action>(ActivateStructureToolWindow)</action></leader>

nmap <leader>yf <action>(CopyPaths)
nmap <leader>yn <action>(CopyReference)</action></leader></action></leader>

nmap ,K <action>(QuickJavaDoc)
nmap ,k <action>(ExpressionTypeInfo)</action></action>


Related

Wiki: Home

MongoDB Logo MongoDB