Add support for :set [option]
This commit is contained in:
parent
13c5c84688
commit
0f38fd195a
2 changed files with 47 additions and 0 deletions
23
lib/vim-option.coffee
Normal file
23
lib/vim-option.coffee
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
class VimOption
|
||||
@singleton: =>
|
||||
@option ||= new VimOption
|
||||
|
||||
list: =>
|
||||
atom.config.set("editor.showInvisibles", true)
|
||||
|
||||
nolist: =>
|
||||
atom.config.set("editor.showInvisibles", false)
|
||||
|
||||
number: =>
|
||||
atom.config.set("editor.showLineNumbers", true)
|
||||
|
||||
nu: =>
|
||||
@number()
|
||||
|
||||
nonumber: =>
|
||||
atom.config.set("editor.showLineNumbers", false)
|
||||
|
||||
nonu: =>
|
||||
@nonumber()
|
||||
|
||||
module.exports = VimOption
|
||||
Loading…
Add table
Add a link
Reference in a new issue