Skip to content

hushicai/fecs.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fecs.vim

syntastic plugin for fecs.

用法

如果你正在用vundle:

Plugin 'hushicai/fecs.vim.git'

然后:PluginInstall安装之。

实际上我们只需要把插件安装到vim runtime directories上即可。

.vimrc配置示例:

" 不建议首次打开文件时进行检查
let g:syntastic_check_on_open = 0
" `:wq`时不进行检查,注意这跟`:w`不一样
let g:syntastic_check_on_wq = 0
" 如果你想在写文件时不进行检查,需要配置`passive`模式
" 在`passive`模式下,只有手动调用了`:SyntasticCheck`才会触发检查
" let g:syntastic_mode_map = {'mode': 'passive'} 
" 你可以配置一个快捷方式,用来快速检查当前文件
" nmap <silent> <F5> :SyntasticCheck<cr>
let g:syntastic_javascript_checkers = ['fecs']
let g:syntastic_javascript_fecs_args = "--reporter=baidu"
let g:syntastic_error_symbol = ""
let g:syntastic_warning_symbol = ""

Note: 请确认你已经安装了syntastic插件。

格式化

进入visual模式,选择要格式化的代码,然后输入:FecsFormat

当然你也可以使用设置一个key map,比如:

vnoremap <unique><silent><leader>ff :call FecsFormat()<CR>

其他

Errors打开错误列表,在每一行上回车可以跳到对应的错误行。

lclose关闭错误列表。

About

syntastic plugin for fecs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages