Skip to content

This a simple project that integrates Holberton School's Betty-Linter to a vim editor to save time. Code and get errors alerts from linter on the go

License

Notifications You must be signed in to change notification settings

kwabenasapong/betty-in-vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

betty-in-vim

An extention for Ale which integrate Betty's linter of holberton school with vim

How to install

Prerequisites

To run this script you need to have install

1.Installation of Vim-plug
Unix
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

You can automate the process by putting the command in your Vim configuration file as suggested here.

Windows (PowerShell)
iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
    ni $HOME/vimfiles/autoload/plug.vim -Force

edit the file to install

1.Copy this and paste to terminal
vim  ~/.vimrc
2.Enter the insert mode, paste the following to the file
map <F8> :setlocal spell! spelllang=en_gb<CR>
set tabstop=8 shiftwidth=8
set autoindent
set smartindent
set cindent
syntax enable
set number
set list listchars=nbsp:¬,tab:»·,trail:·,extends:>
syntax on
set undofile
set undodir=/tmp
inoremap <C-H> <C-W>

"you can delete above commands but make sure to include this one here are mandatory

let g:ale_linters = {'c':['betty-style', 'betty-doc', 'gcc']} "add betty to ale linters
"Call Vim-plug
call plug#begin('~/.vim/plugged')
	Plug 'dense-analysis/ale'|          "to install ALE
	Plug 'bstevary/betty-in-vim'|       "to install the script
call plug#end()
3save and exit
4.After you have exited the file paste the folowing to terminal
vim  ~/v_test.c
5.In command mode type
:PlugInstall
Exit and have fun with vim

Author

Stevary

Support us

This is single project that will save you time, and If your like it please give us an star ⭐ and share it with your peers #happycodding

About

This a simple project that integrates Holberton School's Betty-Linter to a vim editor to save time. Code and get errors alerts from linter on the go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%