Add support for :set [option]

This commit is contained in:
Nikita Zyuzin 2015-07-13 23:06:03 +04:00
parent 13c5c84688
commit 0f38fd195a
2 changed files with 47 additions and 0 deletions

23
lib/vim-option.coffee Normal file
View 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