feat: add support for some plugin
Same as upstream
This commit is contained in:
parent
bb12119765
commit
1f1c6cd850
9
after/ftplugin/fugitive.vim
Normal file
9
after/ftplugin/fugitive.vim
Normal file
@ -0,0 +1,9 @@
|
||||
" vim-bepo - Plugin vim pour disposition de clavier bépo
|
||||
" Maintainer: Micha Moskovic
|
||||
|
||||
" save old 's' mapping to enable sort
|
||||
if !exists("s:s_map") "check needed to avoid mapping to remapped 's'
|
||||
let s:s_map = maparg("s","n")
|
||||
endif
|
||||
execute "nnoremap <silent> <buffer> k " . s:s_map
|
||||
nunmap <buffer> s
|
13
after/ftplugin/netrw.vim
Normal file
13
after/ftplugin/netrw.vim
Normal file
@ -0,0 +1,13 @@
|
||||
" vim-bepo - Plugin vim pour disposition de clavier bépo
|
||||
" Maintainer: Micha Moskovic
|
||||
|
||||
" save old 's' mapping to enable sort
|
||||
if !exists("s:s_map") "check needed to avoid mapping to remapped 's'
|
||||
let s:s_map = maparg("s","n")
|
||||
endif
|
||||
execute "nnoremap <silent> <buffer> k " . s:s_map
|
||||
" on recent versions of netrw, mappings are registered only once per Vim
|
||||
" session (instead of once per buffer), so unmapping will fail afterwards and
|
||||
" errors need to be silenced
|
||||
silent! nunmap <buffer> t
|
||||
silent! nunmap <buffer> s
|
25
after/plugin/surround.vim
Normal file
25
after/plugin/surround.vim
Normal file
@ -0,0 +1,25 @@
|
||||
" vim-bepo - Plugin vim pour disposition de clavier bépo"
|
||||
" Maintainer: Clément Joly
|
||||
|
||||
" Require to set g:surround_no_mappings = 1 in your vimrc
|
||||
if exists("g:loaded_surround") && g:loaded_surround && exists("g:surround_no_mappings") && g:surround_no_mappings
|
||||
" based on https://github.com/tpope/vim-surround/blob/f51a26d3710629d031806305b6c8727189cd1935/plugin/surround.vim#L599
|
||||
nmap dj <Plug>Dsurround
|
||||
nmap dj <Plug>Dsurround
|
||||
nmap lj <Plug>Csurround
|
||||
nmap lJ <Plug>CSurround
|
||||
nmap yj <Plug>Ysurround
|
||||
nmap yJ <Plug>YSurround
|
||||
nmap yjj <Plug>Yssurround
|
||||
nmap yJj <Plug>YSsurround
|
||||
nmap yJJ <Plug>YSsurround
|
||||
xmap J <Plug>VSurround
|
||||
xmap gJ <Plug>VgSurround
|
||||
if !exists("g:surround_no_insert_mappings") || ! g:surround_no_insert_mappings
|
||||
" if !hasmapto("<Plug>Isurround","i") && "" == mapchecj("<C-S>","i")
|
||||
" imap <C-J> <Plug>Isurround
|
||||
" endif
|
||||
imap <C-G>j <Plug>Isurround
|
||||
imap <C-G>J <Plug>ISurround
|
||||
endif
|
||||
endif
|
8
after/plugin/unimpaired.vim
Normal file
8
after/plugin/unimpaired.vim
Normal file
@ -0,0 +1,8 @@
|
||||
" Fix mapping brought by unimpared
|
||||
|
||||
if !empty(maparg("co", "n"))
|
||||
nunmap co
|
||||
endif
|
||||
if !empty(maparg("cop", "n"))
|
||||
nunmap cop
|
||||
endif
|
Loading…
x
Reference in New Issue
Block a user