Added language-specific rules
+ markdown files + cpp files
This commit is contained in:
parent
f2ccbe5549
commit
ceb6b3a156
1
ftplugin/cpp.vim
Normal file
1
ftplugin/cpp.vim
Normal file
@ -0,0 +1 @@
|
||||
set colorcolumn=80
|
||||
1
ftplugin/markdown.vim
Normal file
1
ftplugin/markdown.vim
Normal file
@ -0,0 +1 @@
|
||||
nnoremap <buffer> <C-C> :!pandoc --number-sections % -o %:r.pdf <Enter>
|
||||
35
vimrc
35
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=<F5>
|
||||
|
||||
"parenthèse suivante
|
||||
"matching parenthesis
|
||||
set showmatch
|
||||
|
||||
"mapping
|
||||
nmap <silent> <A-Up> :wincmd k<CR>
|
||||
nmap <silent> <A-Down> :wincmd j<CR>
|
||||
nmap <silent> <A-Left> :wincmd h<CR>
|
||||
nmap <silent> <A-Right> :wincmd l<CR>
|
||||
nmap <silent> <S-A-Up> :wincmd k<CR>
|
||||
nmap <silent> <S-A-Down> :wincmd j<CR>
|
||||
nmap <silent> <S-A-Left> :wincmd h<CR>
|
||||
nmap <silent> <S-A-Right> :wincmd l<CR>
|
||||
|
||||
"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'
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user