diff --git a/ftplugin/c.vim b/ftplugin/c.vim index ce30b1f..e84a659 100644 --- a/ftplugin/c.vim +++ b/ftplugin/c.vim @@ -1 +1,2 @@ +" ale let b:ale_linters = ['ccls'] diff --git a/ftplugin/cpp.vim b/ftplugin/cpp.vim index ce30b1f..80a5941 100644 --- a/ftplugin/cpp.vim +++ b/ftplugin/cpp.vim @@ -1 +1,5 @@ +" ale let b:ale_linters = ['ccls'] + +" vim-fswitch +noremap gfs :FSHere diff --git a/ftplugin/go.vim b/ftplugin/go.vim index 59e9a22..004b157 100644 --- a/ftplugin/go.vim +++ b/ftplugin/go.vim @@ -1,4 +1,17 @@ setlocal noexpandtab +" ale let b:ale_linters = ['gopls'] + +" vim-argwrap let b:argwrap_tail_comma = 1 + +" vim-go +nmap :GoDebugStart +nmap :GoDebugBreakpoint +nmap b (go-build) +nmap c (go-coverage) +nmap r (go-run) +nmap t (go-test) +nmap :GoDebugStepOut +nmap :GoDebugStop diff --git a/ftplugin/python.vim b/ftplugin/python.vim index b68f0fc..e3831f5 100644 --- a/ftplugin/python.vim +++ b/ftplugin/python.vim @@ -1 +1,2 @@ +" ale let b:ale_linters = ['pyls'] diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim index 6eaa1b0..742c503 100644 --- a/ftplugin/rust.vim +++ b/ftplugin/rust.vim @@ -1 +1,2 @@ +" ale let b:ale_linters = ['rls'] diff --git a/keymaps.vim b/keymaps.vim index 2bf019a..c610a10 100644 --- a/keymaps.vim +++ b/keymaps.vim @@ -1,32 +1,32 @@ let mapleader = "\" " core -nnoremap :b# -nnoremap :nohlsearch -nnoremap m :make -nnoremap w :w -nnoremap x :x -inoremap -nnoremap Q +nnoremap :b# +nnoremap :nohlsearch +nnoremap m :make +nnoremap w :w +nnoremap x :x +inoremap +nnoremap Q nnoremap Y y$ -nnoremap Y "+y$ -vnoremap y "+y -vnoremap d "+d -vnoremap p "+p -vnoremap P "+P -nnoremap y "+y -nnoremap d "+d -nnoremap p "+p -nnoremap P "+P -nnoremap yy "+yy -nnoremap d "+dd +nnoremap Y "+y$ +vnoremap y "+y +vnoremap d "+d +vnoremap p "+p +vnoremap P "+P +nnoremap y "+y +nnoremap d "+d +nnoremap p "+p +nnoremap P "+P +nnoremap yy "+yy +nnoremap d "+dd -nnoremap - -nnoremap + -nnoremap < -nnoremap > -nnoremap +nnoremap - +nnoremap + +nnoremap < +nnoremap > +nnoremap nnoremap j nnoremap k @@ -36,47 +36,34 @@ nnoremap l nnoremap j gj nnoremap k gk -inoremap pumvisible() ? '' : '' -inoremap pumvisible() ? '' : '' +inoremap pumvisible() ? '' : '' +inoremap pumvisible() ? '' : '' -" functions -nnoremap ig :Guid +" util +nnoremap ig :Guid " ale -nnoremap gd :ALEGoToDefinition -nnoremap gD :ALEGoToTypeDefinition -nnoremap gr :ALEFindReferences +nnoremap gd :ALEGoToDefinition +nnoremap gD :ALEGoToTypeDefinition +nnoremap gr :ALEFindReferences " fzf -nnoremap fg :GFiles -nnoremap ff :Files ~ -nnoremap fh :History -nnoremap fc :BCommits -nnoremap fb :Buffers -nnoremap fl :Lines +nnoremap fg :GFiles +nnoremap ff :Files ~ +nnoremap fh :History +nnoremap fc :BCommits +nnoremap fb :Buffers +nnoremap fl :Lines " vim-argwrap -nnoremap a :ArgWrap +nnoremap a :ArgWrap " vim-bbye -nnoremap :Bwipeout +nnoremap :Bwipeout " vim-bufonly -nnoremap :BufOnly +nnoremap :BufOnly " vim-easy-align -nmap ga (EasyAlign) -vmap (EasyAlign) - -" vim-go -auto FileType go nmap b (go-build) -auto FileType go nmap c (go-coverage) -auto FileType go nmap r (go-run) -auto FileType go nmap t (go-test) -auto FileType go nmap :GoDebugStart -auto FileType go nmap :GoDebugBreakpoint -auto FileType go nmap :GoDebugStepOut -auto FileType go nmap :GoDebugStop - -" vim-fswitch -auto FileType cpp noremap gfs :FSHere +nmap ga (EasyAlign) +vmap (EasyAlign)