Added language-specific rules

+ markdown files
+ cpp files
This commit is contained in:
Steins 2019-06-30 11:11:06 +02:00
parent f2ccbe5549
commit ceb6b3a156
3 changed files with 20 additions and 17 deletions

1
ftplugin/cpp.vim Normal file
View File

@ -0,0 +1 @@
set colorcolumn=80

1
ftplugin/markdown.vim Normal file
View File

@ -0,0 +1 @@
nnoremap <buffer> <C-C> :!pandoc --number-sections % -o %:r.pdf <Enter>

35
vimrc
View File

@ -1,26 +1,20 @@
"easytags
let g:easytags_include_members = 1
let g:easytags_autorecurse = 1
let g:easytags_suppress_ctags_warning = 1 "fixes the ctags version error
let g:easytags_events = ['BufWritePost']
let g:easytags_python_enabled = 1
"pathogen "pathogen
runtime bundle/vim-pathogen/autoload/pathogen.vim runtime bundle/vim-pathogen/autoload/pathogen.vim
execute pathogen#infect() execute pathogen#infect()
"detection du type de fichier "file type detection
filetype on filetype on
"numeros de lignes "ligne number
set number set number
"coloration "coloration
set background=dark set background=dark
syntax on syntax on
set cursorline set cursorline
highlight ColorColumn ctermbg=DarkYellow
"divers "miscellaneous
set backspace=indent,eol,start set backspace=indent,eol,start
set tabstop=4 set tabstop=4
set shiftwidth=4 set shiftwidth=4
@ -28,28 +22,35 @@ set shiftround
set ruler set ruler
set nocompatible set nocompatible
"commandes incompletes "inclomplete commands
set showcmd set showcmd
"indentation "indent
filetype plugin indent on filetype plugin indent on
set autoindent set autoindent
set smartindent set smartindent
set cindent set cindent
set pastetoggle=<F5> set pastetoggle=<F5>
"parenthèse suivante "matching parenthesis
set showmatch set showmatch
"mapping "mapping
nmap <silent> <A-Up> :wincmd k<CR> nmap <silent> <S-A-Up> :wincmd k<CR>
nmap <silent> <A-Down> :wincmd j<CR> nmap <silent> <S-A-Down> :wincmd j<CR>
nmap <silent> <A-Left> :wincmd h<CR> nmap <silent> <S-A-Left> :wincmd h<CR>
nmap <silent> <A-Right> :wincmd l<CR> nmap <silent> <S-A-Right> :wincmd l<CR>
"escape sequence "escape sequence
:set timeout timeoutlen=100 :set timeout timeoutlen=100
"tags
set tags=tags;
set autochdir
"--------plugins----------
"vim-latex-preview "vim-latex-preview
autocmd Filetype tex setl updatetime=1000 autocmd Filetype tex setl updatetime=1000
let g:livepreview_previewer = 'evince' let g:livepreview_previewer = 'evince'