fix new vimrc
This commit is contained in:
parent
e384476ef3
commit
99f05cdbac
@ -414,7 +414,7 @@ nnoremap <leader>. :lcd %:p:h<CR>
|
||||
""""""noremap <Leader>e :e <C-R>=expand("%:p:h") . "/" <CR>
|
||||
|
||||
"" Opens a tab edit command with the path of the currently edited file filled
|
||||
noremap <Leader>te :tabe <C-R>=expand("%:p:h") . "/" <CR>
|
||||
""""""noremap <Leader>te :tabe <C-R>=expand("%:p:h") . "/" <CR>
|
||||
|
||||
"" fzf.vim
|
||||
set wildmode=list:longest,list:full
|
||||
@ -503,6 +503,13 @@ vnoremap K :m '<-2<CR>gv=gv
|
||||
"" Open current line on GitHub
|
||||
""""""nnoremap <Leader>o :.GBrowse<CR>
|
||||
|
||||
""" toggleterm
|
||||
if has('nvim')
|
||||
lua require("toggleterm").setup()
|
||||
nnoremap <leader>t :ToggleTerm direction=float<CR>
|
||||
endif
|
||||
|
||||
|
||||
"*****************************************************************************
|
||||
"" Custom configs
|
||||
"*****************************************************************************
|
||||
@ -563,8 +570,8 @@ augroup go
|
||||
au FileType go nmap <Leader>db <Plug>(go-doc-browser)
|
||||
|
||||
au FileType go nmap <leader>r <Plug>(go-run)
|
||||
au FileType go nmap <leader>t <Plug>(go-test)
|
||||
au FileType go nmap <Leader>gt <Plug>(go-coverage-toggle)
|
||||
au FileType go nmap <leader>gt <Plug>(go-test)
|
||||
au FileType go nmap <Leader>ct <Plug>(go-coverage-toggle)
|
||||
au FileType go nmap <Leader>i <Plug>(go-info)
|
||||
au FileType go nmap <silent> <Leader>l <Plug>(go-metalinter)
|
||||
au FileType go nmap <C-g> :GoDecls<cr>
|
||||
@ -637,7 +644,7 @@ let g:tagbar_type_ruby = {
|
||||
\ }
|
||||
|
||||
" RSpec.vim mappings
|
||||
map <Leader>t :call RunCurrentSpecFile()<CR>
|
||||
"""""map <Leader>t :call RunCurrentSpecFile()<CR>
|
||||
map <Leader>s :call RunNearestSpec()<CR>
|
||||
map <Leader>l :call RunLastSpec()<CR>
|
||||
map <Leader>a :call RunAllSpecs()<CR>
|
||||
|
Loading…
Reference in New Issue
Block a user