dotfiles/.vimrc
Irrlicht a7cd1c87ea [vim] Disable autoindent in Markdown files
Avoid issues with colon making auto indentation
2025-09-23 22:34:41 +02:00

88 lines
1.7 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
autocmd FileType markdown,text setlocal noautoindent nocindent
augroup END