fsharp / zarchive-vim-fsharp

F# bindings for vim
MIT License
143 stars 34 forks source link

Support F# semantic motions #45

Open Kazark opened 8 years ago

Kazark commented 8 years ago

Python mode for Vim has some nice semantic motions for Python such as:

[M    Jump to previous class or method (normal, visual, operator modes)
]M    Jump to next class or method (normal, visual, operator modes)
aC    Select a class. Ex: vaC, daC, yaC, caC (normal, operator modes)
iC    Select inner class. Ex: viC, diC, yiC, ciC (normal, operator modes)
aM    Select a function or method. Ex: vaM, daM, yaM, caM (normal, operator modes)
iM    Select inner function or method. Ex: viM, diM, yiM, ciM (normal, operator modes)

I would love to have motions like this for F# modules and functions.

P.S. FWIW I've asked a question on Vim StackExchange related to this.

kjnilsson commented 8 years ago

This requires support from the fsautocomplete server. it may support it but I don't have time to implement this myself.

Kazark commented 8 years ago

Okay good to know the general approach that would need to be taken. I'll take a note to work on this if I get the chance.