2.5 KiB
2.5 KiB
up::vim plugins link::https://github.com/tweekmonster/braceless.vim title::"pour les langages à indentation sémantique" #s/informatique/vim
Plugin pour mieux gérer les langages où l'indentation est sémantique (python...)
- Meilleurs motions (
[[pour les définitions python etc.) - text objects intelligents (blocks de codes plutôt que par indentation)
Features
You can use :BracelessEnable +feature to enable feature
Text objects
- more intelligent than indented blocks
- actual code blocks using
iPandaP
Object motions
- move between blocks :
[[and]](any keyword) - move to
defandclass]mand[m: beginning of these blocks]Mand[M: end of these blocks
Folding
- intelligent folding by adding
+fold- exciting details in
:h braceless-folds
- exciting details in
Indent guide
- enable with
+highlight - enable
colorcolumnso the guide can span the height of the window - for other filetypes : vim plugin local-indent
Somewhat intelligent auto-indent
- intelligent autoindent when adding
+indent- pep8 indentation built-in
- temporarily the vim plugin delimitMate
expand_crwhen messing with block arguments (multi-line arguments)
(The backspace key was never used in the image above)
EasyMotion
- Built-in support for EasyMotion
- search for important blocks (
def,class)
- search for important blocks (
Not just Python!
Braceless can simply recognize indentation.
The above GIF was using:
autocmd FileType haml,yaml,coffee BracelessEnable +indent +fold +highlight
You can extend Braceless to give full support to other indented languages. See :h braceless-custom






