diff --git a/apps/mutt/muttrc b/apps/mutt/muttrc index 1f0a928..3cd885a 100644 --- a/apps/mutt/muttrc +++ b/apps/mutt/muttrc @@ -35,7 +35,16 @@ bind index,pager \CI sidebar-open bind index,pager \CB sidebar-toggle-visible bind pager g top -bind pager G top +bind pager G bottom + +# bind pager j top +# bind pager j top +bind pager \Cu half-up +bind pager \Cd half-down +bind pager k half-up +bind pager j half-down +bind pager J next-entry +bind pager K previous-entry bind attach,index g first-entry bind attach,index G last-entry @@ -45,7 +54,7 @@ set message_cachedir = "~/.cache/mutt/bodies" macro index,pager A s>y -# G to get mail +# C-R to get mail bind index \CR imap-fetch-mail # bind index g noop @@ -58,3 +67,9 @@ bind index \CR imap-fetch-mail # macro index,pager y "=[Gmail]/All Mail" "Archive" set record="" + +# bulk operations +# T - tag messages matching... [type in regex] +# ; - perform command on tagged messages +# - A to archive! + diff --git a/apps/neovim/bindings.vim b/apps/neovim/bindings.vim index 83c5f07..63d0714 100644 --- a/apps/neovim/bindings.vim +++ b/apps/neovim/bindings.vim @@ -83,9 +83,13 @@ onoremap ]L :call NextIndent(1, 1, 1, 1) " run make with leader,m nnoremap m :call RunMake() -" show project viewer with leader,n or C-n -nnoremap :call NERDProjectViewer() -nnoremap n :call NERDProjectViewer() +" NERDTree bindings +" show file manager in current directory +nnoremap :NERDTreeToggle +" show file manager in git repo root +nnoremap n :call NERDProjectViewer() +" focus the current file in NERDTree +nnoremap gn :NERDTreeFind " don't kill vim " REBIND @@ -114,6 +118,11 @@ nnoremap l :Buffers " switch to previous buffer nnoremap h :b# +" go to definitions +nnoremap gd :ALEGoToDefinition +nnoremap gh :ALEGoToDefinitionInSplit +nnoremap gv :ALEGoToDefinitionInVSplit + " use leader j and k to switch buffers as well nnoremap k :bnext nnoremap j :bprevious @@ -130,8 +139,15 @@ nnoremap :bprevious nnoremap c ciw nnoremap C ciW +" fast splits +nnoremap s :split +nnoremap v :vsplit + +" fast split closing +nnoremap q o + " clear search higlight -nnoremap / :let @/ = "": +nnoremap / :let @/ = "": " remap jk/jj and its variants to escape inoremap jj diff --git a/apps/neovim/plugins.vim b/apps/neovim/plugins.vim index b14cb03..c0efce1 100644 --- a/apps/neovim/plugins.vim +++ b/apps/neovim/plugins.vim @@ -73,7 +73,6 @@ else endif Plug 'junegunn/vim-plug' " plugin manager should manage itself -Plug 'lytedev/elm-vim' " elm lang Plug 'vim-airline/vim-airline' " status line Plug 'vim-airline/vim-airline-themes' " more minimal status line Plug 'nathanaelkane/vim-indent-guides' " indentation guides @@ -107,3 +106,4 @@ Plug 'tpope/vim-eunuch' " unix helper co Plug 'sheerun/vim-polyglot' " vim plugin loader for many languages Plug 'leafo/moonscript-vim', {'for': ['moon', 'moonscript']} " moonscript language Plug 'OmniSharp/omnisharp-vim', {'for': ['cs']} " C# language +Plug 'lytedev/elm-vim' " elm lang