docs: improve comments
This commit is contained in:
parent
484015a0b5
commit
8af301bc20
71
fnl/bepo.fnl
71
fnl/bepo.fnl
@ -35,6 +35,7 @@
|
|||||||
;; Keys still free
|
;; Keys still free
|
||||||
;; , and ; as they may be used as leaders
|
;; , and ; as they may be used as leaders
|
||||||
;; à and À
|
;; à and À
|
||||||
|
;; è and È
|
||||||
;; on préserve {hjkl} pour les directions
|
;; on préserve {hjkl} pour les directions
|
||||||
(map-all :c :h)
|
(map-all :c :h)
|
||||||
(map-all :t :j)
|
(map-all :t :j)
|
||||||
@ -42,13 +43,12 @@
|
|||||||
(map-all :r :l)
|
(map-all :r :l)
|
||||||
(map-all :C :H)
|
(map-all :C :H)
|
||||||
;; ------
|
;; ------
|
||||||
;; {HJKL} devient [CTSR]
|
;; {JKL} devient [TSR]
|
||||||
(map-all :T :J)
|
(map-all :T :J)
|
||||||
(map-all :S :K)
|
(map-all :S :K)
|
||||||
(map-all :R :L)
|
(map-all :R :L)
|
||||||
;; {HJKL} devient [CTSR] -> free R
|
|
||||||
;; ------
|
;; ------
|
||||||
;; on préserve les variantes avec 'g'
|
;; on préserve les variantes avec 'g'
|
||||||
(map-all :gt :gj)
|
(map-all :gt :gj)
|
||||||
(map-all :gs :gk)
|
(map-all :gs :gk)
|
||||||
;; ------
|
;; ------
|
||||||
@ -58,82 +58,71 @@
|
|||||||
(map-all :zk :zs)
|
(map-all :zk :zs)
|
||||||
(map-all :zs :zk)
|
(map-all :zs :zk)
|
||||||
;; ------
|
;; ------
|
||||||
(map-all :h :t)
|
|
||||||
;; {t} devient [h] pour être proche de [f]
|
;; {t} devient [h] pour être proche de [f]
|
||||||
(map-all :H :T)
|
(map-all :h :t)
|
||||||
;; idem pour {T} et [H]
|
;; idem pour {T} et [H]
|
||||||
(map-all :l :c)
|
(map-all :H :T)
|
||||||
;; {c} devient [l]
|
;; {c} devient [l]
|
||||||
(map-all :L :C)
|
(map-all :l :c)
|
||||||
;; {C} devient [L]
|
;; {C} devient [L]
|
||||||
(map-all :j :r)
|
(map-all :L :C)
|
||||||
;; {j} devient [r]
|
;; {j} devient [r]
|
||||||
(map-all :J :R)
|
(map-all :j :r)
|
||||||
;; {J} devient [R]
|
;; {J} devient [R]
|
||||||
(map-all :k :s)
|
(map-all :J :R)
|
||||||
;; {k} devient [s]
|
;; {k} devient [s]
|
||||||
|
(map-all :k :s)
|
||||||
|
;; {K} devient [S]
|
||||||
(map-all :K :S)
|
(map-all :K :S)
|
||||||
;; {h} devient [S]
|
;; le couple [gb]/[gé] agit sur les tabs
|
||||||
(map-normal :gb :gT)
|
(map-normal :gb :gT)
|
||||||
;; le couple [gb]/[gé] agit sur les tabs
|
|
||||||
(map-normal "gé" :gt)
|
(map-normal "gé" :gt)
|
||||||
;; le couple [gb]/[gé] agit sur les tabs
|
|
||||||
(map-normal :gB ":execute \"silent! tabfirst\"<CR>")
|
|
||||||
;; [gB] va au premier tab
|
;; [gB] va au premier tab
|
||||||
(map-normal "gÉ" ":execute \"silent! tablast\"<CR>")
|
(map-normal :gB ":execute \"silent! tabfirst\"<CR>")
|
||||||
;; [gÉ] au dernier
|
;; [gÉ] au dernier
|
||||||
(map-normal :gT "<C-]>")
|
(map-normal "gÉ" ":execute \"silent! tablast\"<CR>")
|
||||||
;; [gT] est libéré et peut agir sur les tags
|
;; [gT] est libéré et peut agir sur les tags
|
||||||
(map-normal "«" "<")
|
(map-normal :gT "<C-]>")
|
||||||
;; [<] est moins accessible que [«]
|
;; [<] est moins accessible que [«]
|
||||||
(map-normal "»" ">")
|
(map-normal "«" "<")
|
||||||
;; idem pour [»] et [>]
|
;; idem pour [»] et [>]
|
||||||
|
(map-normal "»" ">")
|
||||||
|
;; idem pour [g,] et [g;] qui sont permutés
|
||||||
(map-all "g," "g;")
|
(map-all "g," "g;")
|
||||||
;; idem pour [g,] et [g;]
|
|
||||||
(map-all "g;" "g,")
|
(map-all "g;" "g,")
|
||||||
;; qui sont permutés
|
|
||||||
(map-all "é" :w)
|
|
||||||
;; [w] est peu accessible, on utilise [é]
|
;; [w] est peu accessible, on utilise [é]
|
||||||
(map-all "É" :W)
|
(map-all "é" :w)
|
||||||
;; idem pour [W] et [É]
|
;; idem pour [W] et [É]
|
||||||
|
(map-all "É" :W)
|
||||||
;; ------
|
;; ------
|
||||||
(map-text-object "aé" :aw)
|
|
||||||
;; idem pour [aw] et [aé]
|
;; idem pour [aw] et [aé]
|
||||||
(map-text-object "aÉ" :aW)
|
(map-text-object "aé" :aw)
|
||||||
;; idem pour [aW] et [aÉ]
|
;; idem pour [aW] et [aÉ]
|
||||||
(map-text-object "ié" :iw)
|
(map-text-object "aÉ" :aW)
|
||||||
;; idem pour [iw] et [ié]
|
;; idem pour [iw] et [ié]
|
||||||
(map-text-object "iÉ" :iW)
|
(map-text-object "ié" :iw)
|
||||||
;; idem pour [iW] et [iÉ]
|
;; idem pour [iW] et [iÉ]
|
||||||
|
(map-text-object "iÉ" :iW)
|
||||||
;; ------
|
;; ------
|
||||||
(map-normal :w :<C-w>)
|
|
||||||
;; [w] est libre pour faire <C-w>
|
;; [w] est libre pour faire <C-w>
|
||||||
(map-normal :W :<C-w><C-w>)
|
(map-normal :w :<C-w>)
|
||||||
;; et [w] pour faire <C-w><C-w>
|
;; et [w] pour faire <C-w><C-w>
|
||||||
|
(map-normal :W :<C-w><C-w>)
|
||||||
|
;; on map [w]+direction, miniscule + majuscule
|
||||||
(map-normal :wc :<C-w>h)
|
(map-normal :wc :<C-w>h)
|
||||||
;; on map [w]+direction
|
|
||||||
(map-normal :wt :<C-w>j)
|
(map-normal :wt :<C-w>j)
|
||||||
;; on map [w]+direction
|
|
||||||
(map-normal :ws :<C-w>k)
|
(map-normal :ws :<C-w>k)
|
||||||
;; on map [w]+direction
|
|
||||||
(map-normal :wr :<C-w>l)
|
(map-normal :wr :<C-w>l)
|
||||||
;; on map [w]+direction
|
|
||||||
(map-normal :wC :<C-w>H)
|
(map-normal :wC :<C-w>H)
|
||||||
;; idem pour les majuscules
|
|
||||||
(map-normal :wT :<C-w>J)
|
(map-normal :wT :<C-w>J)
|
||||||
;; idem pour les majuscules
|
|
||||||
(map-normal :wS :<C-w>K)
|
(map-normal :wS :<C-w>K)
|
||||||
;; idem pour les majuscules
|
|
||||||
(map-normal :wR :<C-w>L)
|
(map-normal :wR :<C-w>L)
|
||||||
;; idem pour les majuscules
|
|
||||||
;; ------
|
|
||||||
(map-normal :wh :<C-w>s)
|
|
||||||
;; crée un split _h_orizontal
|
;; crée un split _h_orizontal
|
||||||
;; ------
|
(map-normal :wh :<C-w>s)
|
||||||
(map-normal "wé" :<C-w>t)
|
|
||||||
;; va en haut à gauche
|
;; va en haut à gauche
|
||||||
(map-normal "wÉ" :<C-w>T)
|
(map-normal "wé" :<C-w>t)
|
||||||
;; déplace sur un nouveau tab
|
;; déplace sur un nouveau tab
|
||||||
|
(map-normal "wÉ" :<C-w>T)
|
||||||
)
|
)
|
||||||
|
|
||||||
(fn setup []
|
(fn setup []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user