From ceb6b3a15610080a290b69833109f6f9f8fb5d14 Mon Sep 17 00:00:00 2001 From: Steins Date: Sun, 30 Jun 2019 11:11:06 +0200 Subject: [PATCH] Added language-specific rules + markdown files + cpp files --- ftplugin/cpp.vim | 1 + ftplugin/markdown.vim | 1 + vimrc | 35 ++++++++++++++++++----------------- 3 files changed, 20 insertions(+), 17 deletions(-) create mode 100644 ftplugin/cpp.vim create mode 100644 ftplugin/markdown.vim diff --git a/ftplugin/cpp.vim b/ftplugin/cpp.vim new file mode 100644 index 0000000..3b97ecb --- /dev/null +++ b/ftplugin/cpp.vim @@ -0,0 +1 @@ +set colorcolumn=80 diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim new file mode 100644 index 0000000..bc2c845 --- /dev/null +++ b/ftplugin/markdown.vim @@ -0,0 +1 @@ +nnoremap :!pandoc --number-sections % -o %:r.pdf diff --git a/vimrc b/vimrc index 24f90d5..c5baae6 100644 --- a/vimrc +++ b/vimrc @@ -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 runtime bundle/vim-pathogen/autoload/pathogen.vim execute pathogen#infect() -"detection du type de fichier +"file type detection filetype on -"numeros de lignes +"ligne number set number "coloration set background=dark syntax on set cursorline +highlight ColorColumn ctermbg=DarkYellow -"divers +"miscellaneous set backspace=indent,eol,start set tabstop=4 set shiftwidth=4 @@ -28,28 +22,35 @@ set shiftround set ruler set nocompatible -"commandes incompletes +"inclomplete commands set showcmd -"indentation +"indent filetype plugin indent on set autoindent set smartindent set cindent set pastetoggle= -"parenthèse suivante +"matching parenthesis set showmatch "mapping -nmap :wincmd k -nmap :wincmd j -nmap :wincmd h -nmap :wincmd l +nmap :wincmd k +nmap :wincmd j +nmap :wincmd h +nmap :wincmd l "escape sequence :set timeout timeoutlen=100 +"tags +set tags=tags; +set autochdir + +"--------plugins---------- + "vim-latex-preview autocmd Filetype tex setl updatetime=1000 let g:livepreview_previewer = 'evince' +