Vimagit/plugins etc

main
Steffen Rademacker 7 years ago
parent 612429b646
commit b4f524f43f

@ -1,6 +1,5 @@
call dein#add('Shougo/deoplete.nvim')
call dein#add('Shougo/neosnippet')
call dein#add('cakebaker/scss-syntax.vim', { 'on_ft': [ 'scss', 'css'] })
call dein#add('christoomey/vim-tmux-navigator')
call dein#add('cocopon/lightline-hybrid.vim')
call dein#add('editorconfig/editorconfig-vim')
@ -19,7 +18,6 @@ call dein#add('tpope/vim-repeat')
call dein#add('tpope/vim-surround')
call dein#add('tpope/vim-unimpaired')
call dein#add('tpope/vim-vinegar')
call dein#add('tyru/open-browser.vim')
call dein#add('w0ng/vim-hybrid')
call dein#add('w0rp/ale')
call dein#add('webgefrickel/vim-snippets')

@ -34,6 +34,7 @@ nnoremap <silent> <BS> :TmuxNavigateLeft<cr>
" Bubble/indent lines using unimpaired
" using left alt + hjkl on mac usgerman keyboard
" those are some weird mappings, but they work!
nmap ˚ [e
nmap ∆ ]e
nmap ˙ <<
@ -44,6 +45,7 @@ vmap ˙ <gv
vmap ¬ >gv
" no help while mishitting ESC - awesome
" just type :help if you need help is easier
noremap <F1> <ESC>
" hitting jj in insert mode escapes

@ -26,3 +26,6 @@ nnoremap <leader>p p`[v`]=
" toggle wrapping
nnoremap <leader>w :set wrap! wrap?<CR>
" reload files when set autoread is active with F5
nnoremap <leader>r :checktime<CR>

@ -12,16 +12,19 @@ function! s:deoplete_cr_function() abort
return deoplete#close_popup() . "\<CR>"
endfunction
" fugitive
nnoremap <silent> <leader>gs :Gstatus<CR><C-w>20+
nnoremap <silent> <leader>gd :Gdiff<CR><C-w>20+
nnoremap <silent> <leader>gc :Gcommit<CR><C-w>20+
nnoremap <silent> <leader>gw :Gwrite<CR><C-w>20+
" fugitive + vimagit
nnoremap <silent> <leader>gs :Gstatus<CR>
nnoremap <silent> <leader>gd :Gvdiff<CR>
nnoremap <silent> <leader>gc :Gcommit<CR>
nnoremap <silent> <leader>gw :Gwrite<CR>
nnoremap <silent> <leader>gb :Gblame<CR>
nnoremap <silent> <leader>gm :Magit<CR>
" incsearch
let g:incsearch#auto_nohlsearch = 1
let g:incsearch#consistent_n_direction = 1
let g:incsearch#magic = '\v'
map / <Plug>(incsearch-forward)
map ? <Plug>(incsearch-backward)
map g/ <Plug>(incsearch-stay)
@ -44,16 +47,11 @@ smap <C-j> <Plug>(neosnippet_expand_or_jump)
xmap <C-j> <Plug>(neosnippet_expand_target)
" sneak
let g:sneak#use_ic_scs = 0
let g:sneak#use_ic_scs = 1
let g:sneak#map_netrw = 1
let g:sneak#s_next = 1
let g:sneak#streak = 1
" openbrowser
let g:netrw_nogx = 1 " disable netrw's gx mapping.
nmap gx <Plug>(openbrowser-smart-search)
vmap gx <Plug>(openbrowser-smart-search)
" ale
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 0

Loading…
Cancel
Save