dotfiles/.vimrc
Irrlicht c3192fe3bc [vimrc] Remove unsused plugin and add comment
- Explain that grammalecte is a plugin for grammar check in French
- Remove unused plugin for beancount (wi use hledger)
2025-06-06 02:43:28 +02:00

87 lines
1.6 KiB
VimL

syntax on
set nocompatible
" Behavior
set backspace=indent,eol,start
set ignorecase
set smartcase
" Visual
set ruler
set number
set noerrorbells
set novisualbell
set showcmd
set showmatch
set hlsearch " highlight search
" tabs
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
" Word wrapping
set wrap
set linebreak
" Indentation
set autoindent
set cindent
" Folding
set foldmethod=indent
set nofoldenable
set foldcolumn=1
filetype off
set runtimepath+=/usr/share/lilypond/2.18.2/vim/
filetype on
" Vundle configuration & management
filetype off
set rtp+=$HOME/.vim/bundle/Vundle.vim
call vundle#rc()
" Bundles for vundle "{{{
"Vim bundle Manager
Bundle 'gmarik/vundle'
" Syntax checking
Bundle 'scrooloose/syntastic'
" Color schemes :)
Bundle 'flazz/vim-colorschemes'
" Spelling and grammar correction in French
Bundle 'dpelle/vim-Grammalecte'
" "}}}
" END vundle
filetype plugin indent on
" Indicate Grammalecte binary
let g:grammalecte_cli_py='/usr/bin/grammalecte-cli'
" Grammalecte toggle
nnoremap <C-s> :call GrammalecteToggle()<cr>
let g:grammalecte_is_open = 0
function! GrammalecteToggle()
if g:grammalecte_is_open
GrammalecteClear
let g:grammalecte_is_open = 0
else
GrammalecteCheck
let g:grammalecte_is_open = 1
endif
endfunction
" Syntactic config
let g:syntastic_html_checkers = ['jshint']
augroup vimrc
" Clear all vimrc autocommands
autocmd!
" Use vim-colorscheme plugin to set color
autocmd vimenter * colorscheme sourcerer
" Spelling
autocmd FileType markdown,text setlocal spell spelllang=en,fr
augroup END