" YouCompleteMe nnoremap fi :YcmCompleter FixIt nnoremap gd :YcmCompleter GoTo nnoremap gt :YcmCompleter GetType nnoremap sd :YcmShowDetailedDiagnostic nnoremap D (YCMHover) " termdebug " TODO: Detecet if termdebug is loaded, if not do the default action. nnoremap :Gdb nnoremap :Program nnoremap :Source tnoremap :Gdb tnoremap :Program tnoremap :Source " GitGutter nnoremap gn :GitGutterNextHunk nnoremap gp :GitGutterPrevHunk " Quickfix list nnoremap qo :copen nnoremap qc :cclose nnoremap qq :cc nnoremap qn :cnext nnoremap qp :cprevious nnoremap qf :cfirst nnoremap qa :clast " Location list nnoremap lo :lopen nnoremap lc :lclose nnoremap ll :ll nnoremap ln :lnext nnoremap lp :lprevious nnoremap lf :lfirst nnoremap la :llast " Preview window nnoremap pc :pclose nnoremap pe :pedit nnoremap ps :psearch " fzf nnoremap f :Files nnoremap a :Ag nnoremap g :GitFiles nnoremap b :Buffers nnoremap l :BLines nnoremap c :Colors nnoremap h :Helptags nnoremap s :Snippets " Search to the word under the cursor nnoremap ag :Ag =expand('') " Treat long lines as line containing breaks nnoremap j gj nnoremap k gk " Quick write nnoremap w :w! " Switch panes nnoremap h nnoremap j nnoremap k nnoremap l " Redraw window nnoremap l " Quick tabs nnoremap tn :tabnew nnoremap tc :tabclose nnoremap to :tabonly nnoremap tm :tabmove " Clear search highlights nnoremap :nohlsearch if exists('loaded_oscyank') noremap y :Oscyank else " System clipboard yank/put noremap y "+y noremap Y "+Y noremap p "+p noremap P "+P endif " Quickly access spelling menu inoremap us nnoremap ius " Disable 'Q' from opening Ex mode nnoremap Q " Disable 'K' from loading man pages noremap K " Split line at the cursor nnoremap [j i nnoremap ]j a " Toggle Checkbox nnoremap :ToggleCheckbox " Show highlight groups under the cursor nnoremap hi :CursorHighlightGroups " Rename C/C++ include guard nnoremap rg :call do#rename_include_guard(expand(''))