Cleanup
This commit is contained in:
parent
d1fb9f69e1
commit
9662d2857e
@ -1 +1,2 @@
|
|||||||
|
" ale
|
||||||
let b:ale_linters = ['ccls']
|
let b:ale_linters = ['ccls']
|
||||||
|
@ -1 +1,5 @@
|
|||||||
|
" ale
|
||||||
let b:ale_linters = ['ccls']
|
let b:ale_linters = ['ccls']
|
||||||
|
|
||||||
|
" vim-fswitch
|
||||||
|
noremap gfs :FSHere<Cr>
|
||||||
|
@ -1,4 +1,17 @@
|
|||||||
setlocal noexpandtab
|
setlocal noexpandtab
|
||||||
|
|
||||||
|
" ale
|
||||||
let b:ale_linters = ['gopls']
|
let b:ale_linters = ['gopls']
|
||||||
|
|
||||||
|
" vim-argwrap
|
||||||
let b:argwrap_tail_comma = 1
|
let b:argwrap_tail_comma = 1
|
||||||
|
|
||||||
|
" vim-go
|
||||||
|
nmap <leader><f5> :GoDebugStart<cr>
|
||||||
|
nmap <leader><f9> :GoDebugBreakpoint<cr>
|
||||||
|
nmap <leader>b <plug>(go-build)
|
||||||
|
nmap <leader>c <plug>(go-coverage)
|
||||||
|
nmap <leader>r <plug>(go-run)
|
||||||
|
nmap <leader>t <plug>(go-test)
|
||||||
|
nmap <s-f11> :GoDebugStepOut<cr>
|
||||||
|
nmap <s-f5> :GoDebugStop<cr>
|
||||||
|
@ -1 +1,2 @@
|
|||||||
|
" ale
|
||||||
let b:ale_linters = ['pyls']
|
let b:ale_linters = ['pyls']
|
||||||
|
@ -1 +1,2 @@
|
|||||||
|
" ale
|
||||||
let b:ale_linters = ['rls']
|
let b:ale_linters = ['rls']
|
||||||
|
95
keymaps.vim
95
keymaps.vim
@ -1,32 +1,32 @@
|
|||||||
let mapleader = "\<Space>"
|
let mapleader = "\<Space>"
|
||||||
|
|
||||||
" core
|
" core
|
||||||
nnoremap <silent><Leader><Leader> :b#<Cr>
|
nnoremap <silent><leader><leader> :b#<cr>
|
||||||
nnoremap <silent><C-c><C-c> :nohlsearch<Cr>
|
nnoremap <silent><c-c><c-c> :nohlsearch<cr>
|
||||||
nnoremap <silent><Leader>m :make<Cr>
|
nnoremap <silent><leader>m :make<cr>
|
||||||
nnoremap <silent><Leader>w :w<Cr>
|
nnoremap <silent><leader>w :w<cr>
|
||||||
nnoremap <silent><Leader>x :x<Cr>
|
nnoremap <silent><leader>x :x<cr>
|
||||||
inoremap <C-c> <Esc>
|
inoremap <C-c> <esc>
|
||||||
nnoremap Q <Nop>
|
nnoremap Q <nop>
|
||||||
|
|
||||||
nnoremap Y y$
|
nnoremap Y y$
|
||||||
nnoremap <Leader>Y "+y$
|
nnoremap <leader>Y "+y$
|
||||||
vnoremap <Leader>y "+y
|
vnoremap <leader>y "+y
|
||||||
vnoremap <Leader>d "+d
|
vnoremap <leader>d "+d
|
||||||
vnoremap <Leader>p "+p
|
vnoremap <leader>p "+p
|
||||||
vnoremap <Leader>P "+P
|
vnoremap <leader>P "+P
|
||||||
nnoremap <Leader>y "+y
|
nnoremap <leader>y "+y
|
||||||
nnoremap <Leader>d "+d
|
nnoremap <leader>d "+d
|
||||||
nnoremap <Leader>p "+p
|
nnoremap <leader>p "+p
|
||||||
nnoremap <Leader>P "+P
|
nnoremap <leader>P "+P
|
||||||
nnoremap <Leader>yy "+yy
|
nnoremap <leader>yy "+yy
|
||||||
nnoremap <Leader>d "+dd
|
nnoremap <leader>d "+dd
|
||||||
|
|
||||||
nnoremap <A-k> <C-W>-
|
nnoremap <a-k> <c-w>-
|
||||||
nnoremap <A-j> <C-W>+
|
nnoremap <a-j> <c-w>+
|
||||||
nnoremap <A-h> <C-W><
|
nnoremap <a-h> <c-w><
|
||||||
nnoremap <A-l> <C-W>>
|
nnoremap <a-l> <c-w>>
|
||||||
nnoremap <A-=> <C-W><C-=>
|
nnoremap <a-=> <c-w><c-=>
|
||||||
|
|
||||||
nnoremap <C-j> <C-W>j
|
nnoremap <C-j> <C-W>j
|
||||||
nnoremap <C-k> <C-W>k
|
nnoremap <C-k> <C-W>k
|
||||||
@ -36,47 +36,34 @@ nnoremap <C-l> <C-W>l
|
|||||||
nnoremap j gj
|
nnoremap j gj
|
||||||
nnoremap k gk
|
nnoremap k gk
|
||||||
|
|
||||||
inoremap <Expr><Tab> pumvisible() ? '<C-y>' : '<Tab>'
|
inoremap <expr><tab> pumvisible() ? '<C-y>' : '<tab>'
|
||||||
inoremap <Expr><Cr> pumvisible() ? '<C-e><Cr>' : '<Cr>'
|
inoremap <expr><cr> pumvisible() ? '<C-e><cr>' : '<cr>'
|
||||||
|
|
||||||
" functions
|
" util
|
||||||
nnoremap <Leader>ig :Guid<Cr>
|
nnoremap <leader>ig :Guid<cr>
|
||||||
|
|
||||||
" ale
|
" ale
|
||||||
nnoremap gd :ALEGoToDefinition<Cr>
|
nnoremap gd :ALEGoToDefinition<cr>
|
||||||
nnoremap gD :ALEGoToTypeDefinition<Cr>
|
nnoremap gD :ALEGoToTypeDefinition<cr>
|
||||||
nnoremap gr :ALEFindReferences<Cr>
|
nnoremap gr :ALEFindReferences<cr>
|
||||||
|
|
||||||
" fzf
|
" fzf
|
||||||
nnoremap <silent><Leader>fg :GFiles<Cr>
|
nnoremap <silent><leader>fg :GFiles<cr>
|
||||||
nnoremap <silent><Leader>ff :Files ~<Cr>
|
nnoremap <silent><leader>ff :Files ~<cr>
|
||||||
nnoremap <silent><Leader>fh :History<Cr>
|
nnoremap <silent><leader>fh :History<cr>
|
||||||
nnoremap <silent><Leader>fc :BCommits<Cr>
|
nnoremap <silent><leader>fc :BCommits<cr>
|
||||||
nnoremap <silent><Leader>fb :Buffers<Cr>
|
nnoremap <silent><leader>fb :Buffers<cr>
|
||||||
nnoremap <silent><Leader>fl :Lines<Cr>
|
nnoremap <silent><leader>fl :Lines<cr>
|
||||||
|
|
||||||
" vim-argwrap
|
" vim-argwrap
|
||||||
nnoremap <silent><Leader>a :ArgWrap<Cr>
|
nnoremap <silent><leader>a :ArgWrap<cr>
|
||||||
|
|
||||||
" vim-bbye
|
" vim-bbye
|
||||||
nnoremap <silent><Bs> :Bwipeout<Cr>
|
nnoremap <silent><bs> :Bwipeout<cr>
|
||||||
|
|
||||||
" vim-bufonly
|
" vim-bufonly
|
||||||
nnoremap <silent><S-Bs> :BufOnly<Cr>
|
nnoremap <silent><s-bs> :BufOnly<cr>
|
||||||
|
|
||||||
" vim-easy-align
|
" vim-easy-align
|
||||||
nmap ga <Plug>(EasyAlign)
|
nmap ga <plug>(EasyAlign)
|
||||||
vmap <Cr> <Plug>(EasyAlign)
|
vmap <cr> <plug>(EasyAlign)
|
||||||
|
|
||||||
" vim-go
|
|
||||||
auto FileType go nmap <Leader>b <Plug>(go-build)
|
|
||||||
auto FileType go nmap <Leader>c <Plug>(go-coverage)
|
|
||||||
auto FileType go nmap <Leader>r <Plug>(go-run)
|
|
||||||
auto FileType go nmap <Leader>t <Plug>(go-test)
|
|
||||||
auto FileType go nmap <Leader><F5> :GoDebugStart<Cr>
|
|
||||||
auto FileType go nmap <Leader><F9> :GoDebugBreakpoint<Cr>
|
|
||||||
auto FileType go nmap <S-F11> :GoDebugStepOut<Cr>
|
|
||||||
auto FileType go nmap <S-F5> :GoDebugStop<Cr>
|
|
||||||
|
|
||||||
" vim-fswitch
|
|
||||||
auto FileType cpp noremap gfs :FSHere<Cr>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user