You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I am mainly a user of vim, my instinct for changing filetype is using :setf. It would be nice if there were a way to open the "grammar menu" and set the Atom grammar immediately.
I am very new to the Atom editor, but I think this would be helpful. Hitting <C-L> is a bit counter-intuitive for me.
Here is the description of how :setf works from the Vim documentation. Basically, Atom's "grammar" is equivalent to Vim's filetype.
This command is used in a filetype.vim file to avoid setting the 'filetype' option twice, causing different settings and syntax files to be loaded.
When the optional FALLBACK argument is present, a later :setfiletype command will override the 'filetype'. This is to used for filetype detections that are just a guess. did_filetype() will return false after this command.
The text was updated successfully, but these errors were encountered:
As I am mainly a user of vim, my instinct for changing filetype is using :setf. It would be nice if there were a way to open the "grammar menu" and set the Atom grammar immediately.
I am very new to the Atom editor, but I think this would be helpful. Hitting
<C-L>
is a bit counter-intuitive for me.Here is the description of how :setf works from the Vim documentation. Basically, Atom's "grammar" is equivalent to Vim's filetype.
:setf[iletype] [FALLBACK] {filetype}
:setf
:setfiletype
Set the
'filetype'
option to{filetype}
, but only if not done yet in a sequence of (nested) autocommands. This is short forThis command is used in a filetype.vim file to avoid setting the 'filetype' option twice, causing different settings and syntax files to be loaded.
When the optional
FALLBACK
argument is present, a later:setfiletype
command will override the'filetype'
. This is to used for filetype detections that are just a guess.did_filetype()
will return false after this command.The text was updated successfully, but these errors were encountered: