Skip to content

Latest commit

 

History

History
89 lines (67 loc) · 2.11 KB

README.md

File metadata and controls

89 lines (67 loc) · 2.11 KB

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