summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--LICENSE2
-rw-r--r--plugin/bepo.vim26
2 files changed, 27 insertions, 1 deletions
diff --git a/LICENSE b/LICENSE
index d39576c..1665b95 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2020 Romain Porte
+Copyright (c) 2020 Agathe Porte
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/plugin/bepo.vim b/plugin/bepo.vim
index 17865be..9a316b2 100644
--- a/plugin/bepo.vim
+++ b/plugin/bepo.vim
@@ -8,6 +8,32 @@ else
let g:loaded_bepo = 1
endif
+" vim-surround {{{1
+let g:surround_no_mappings = 1
+" delete surround
+nmap dè <Plug>Dsurround
+" change surround
+nmap lè <Plug>Csurround
+" add surround
+nmap yè <Plug>Ysurround
+" add surround with new line
+nmap yÈ <Plug>YSurround
+" surround line
+nmap yèè <Plug>Yssurround
+" surround line with new line
+nmap yÈè <Plug>YSsurround
+nmap yÈÈ <Plug>YSsurround
+
+" visual surround
+xmap È <Plug>VSurround
+" visual surround with new line
+xmap gÈ <Plug>VgSurround
+
+" insert surround
+imap <C-G>è <Plug>Isurround
+" insert surround with new line
+imap <C-G>È <Plug>ISurround
+
" Échange É et W{{{1
" ------------------