vim updates
This commit is contained in:
parent
d6cdb0f582
commit
e7243b8d4c
|
@ -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><return>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 "<save-message>=[Gmail]/All Mail<enter><enter>" "Archive"
|
||||
|
||||
set record=""
|
||||
|
||||
# bulk operations
|
||||
# T - tag messages matching... [type in regex]
|
||||
# ; - perform command on tagged messages
|
||||
# <command> - A to archive!
|
||||
|
||||
|
|
|
@ -83,9 +83,13 @@ onoremap <silent> ]L :call NextIndent(1, 1, 1, 1)<CR>
|
|||
" run make with leader,m
|
||||
nnoremap <leader>m :call RunMake()<CR>
|
||||
|
||||
" show project viewer with leader,n or C-n
|
||||
nnoremap <C-n> :call NERDProjectViewer()<CR>
|
||||
" NERDTree bindings
|
||||
" show file manager in current directory
|
||||
nnoremap <C-n> :NERDTreeToggle<CR>
|
||||
" show file manager in git repo root
|
||||
nnoremap <leader>n :call NERDProjectViewer()<CR>
|
||||
" focus the current file in NERDTree
|
||||
nnoremap <leader>gn :NERDTreeFind<CR>
|
||||
|
||||
" don't kill vim
|
||||
" REBIND
|
||||
|
@ -114,6 +118,11 @@ nnoremap <leader>l :Buffers<CR>
|
|||
" switch to previous buffer
|
||||
nnoremap <leader>h :b#<CR>
|
||||
|
||||
" go to definitions
|
||||
nnoremap <leader>gd :ALEGoToDefinition<CR>
|
||||
nnoremap <leader>gh :ALEGoToDefinitionInSplit<CR>
|
||||
nnoremap <leader>gv :ALEGoToDefinitionInVSplit<CR>
|
||||
|
||||
" use leader j and k to switch buffers as well
|
||||
nnoremap <leader>k :bnext<CR>
|
||||
nnoremap <leader>j :bprevious<CR>
|
||||
|
@ -130,8 +139,15 @@ nnoremap <leader><S-Tab> :bprevious<CR>
|
|||
nnoremap <leader>c ciw
|
||||
nnoremap <leader>C ciW
|
||||
|
||||
" fast splits
|
||||
nnoremap <silent> <leader>s :split<CR>
|
||||
nnoremap <silent> <leader>v :vsplit<CR>
|
||||
|
||||
" fast split closing
|
||||
nnoremap <silent> <leader>q <C-w>o
|
||||
|
||||
" clear search higlight
|
||||
nnoremap <leader>/ :let @/ = ""<CR>:<BACKSPACE>
|
||||
nnoremap <silent> <leader>/ :let @/ = ""<CR>:<BACKSPACE>
|
||||
|
||||
" remap jk/jj and its variants to escape
|
||||
inoremap jj <Esc>
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue