mirror of
https://github.com/klmp200/vim-sync.git
synced 2024-12-27 10:11:10 +00:00
Splited config files
This commit is contained in:
parent
e7bf265776
commit
f14cde3ad4
@ -4,9 +4,9 @@ use 5.018;
|
||||
use autodie;
|
||||
use Cwd 'realpath';
|
||||
|
||||
say "Backuping your original vimrc";
|
||||
eval {
|
||||
rename "$ENV{'HOME'}/.vimrc", "$ENV{'HOME'}/.vimrc.old";
|
||||
say "Old vimrc backuped to ~/.vimrc.old";
|
||||
} or do {
|
||||
say "No file to backup";
|
||||
};
|
||||
|
40
vimrc
40
vimrc
@ -30,44 +30,6 @@ syntax on
|
||||
colorscheme monokai
|
||||
set relativenumber
|
||||
|
||||
let g:lightline = {
|
||||
\ 'colorscheme': 'wombat',
|
||||
\ 'component': {
|
||||
\ 'readonly': '%{&readonly?"\u2b64":""}',
|
||||
\ },
|
||||
\ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2" },
|
||||
\ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3"}
|
||||
\ }
|
||||
|
||||
" Airline config
|
||||
|
||||
let g:airline#extensions#tabline#enabled = 1
|
||||
let g:airline_powerline_fonts = 1
|
||||
set laststatus=2
|
||||
let g:airline_detect_modified=1
|
||||
let g:airline_detect_paste=1
|
||||
let g:airline_detect_crypt=1
|
||||
let g:airline_detect_spell=1
|
||||
let g:airline_detect_iminsert=0
|
||||
|
||||
" Cosco Semicolon
|
||||
command! CommaOrSemiColon call cosco#commaOrSemiColon()
|
||||
inoremap <silent> <Leader>; <c-o>:call cosco#commaOrSemiColon()<CR>
|
||||
|
||||
" Snippets
|
||||
let g:UltiSnipsExpandTrigger="<tab>"
|
||||
let g:UltiSnipsJumpForwardTrigger="<c-b>"
|
||||
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
|
||||
let g:UltiSnipsEditSplit="vertical"
|
||||
|
||||
" Vérification syntaxique du code
|
||||
let g:syntastic_enable_signs=1 " Activer les signes dans la barre
|
||||
" d'erreur à gauche
|
||||
let g:syntastic_enable_perl_checker=1 " Réactiver l'analyse pour le Perl
|
||||
" (désactivé car risque de sécurité sur les scripts Perl étrangers)
|
||||
let g:syntastic_perl_checkers=['perl']
|
||||
let g:syntastic_check_on_open=1 " Analyser le fichier à l'ouverture
|
||||
let g:syntastic_c_include_dirs = [ '../include', 'include', '../INC', 'INC', '../inc', 'inc' ] " Spécifications des dossier d'inclusion perso
|
||||
" )
|
||||
exec "source ".syncdir."vimrc.plugin.conf"
|
||||
|
||||
exec "source ".syncdir."vimrc.bepo"
|
||||
|
30
vimrc.plugin.conf
Normal file
30
vimrc.plugin.conf
Normal file
@ -0,0 +1,30 @@
|
||||
" Airline config
|
||||
|
||||
let g:airline#extensions#tabline#enabled = 1
|
||||
let g:airline_powerline_fonts = 1
|
||||
set laststatus=2
|
||||
let g:airline_detect_modified=1
|
||||
let g:airline_detect_paste=1
|
||||
let g:airline_detect_crypt=1
|
||||
let g:airline_detect_spell=1
|
||||
let g:airline_detect_iminsert=0
|
||||
|
||||
" Cosco Semicolon
|
||||
command! CommaOrSemiColon call cosco#commaOrSemiColon()
|
||||
inoremap <silent> <Leader>; <c-o>:call cosco#commaOrSemiColon()<CR>
|
||||
|
||||
" Snippets
|
||||
let g:UltiSnipsExpandTrigger="<tab>"
|
||||
let g:UltiSnipsJumpForwardTrigger="<c-b>"
|
||||
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
|
||||
let g:UltiSnipsEditSplit="vertical"
|
||||
|
||||
" Vérification syntaxique du code
|
||||
let g:syntastic_enable_signs=1 " Activer les signes dans la barre
|
||||
" d'erreur à gauche
|
||||
let g:syntastic_enable_perl_checker=1 " Réactiver l'analyse pour le Perl
|
||||
" (désactivé car risque de sécurité sur les scripts Perl étrangers)
|
||||
let g:syntastic_perl_checkers=['perl']
|
||||
let g:syntastic_check_on_open=1 " Analyser le fichier à l'ouverture
|
||||
let g:syntastic_c_include_dirs = [ '../include', 'include', '../INC', 'INC', '../inc', 'inc' ] " Spécifications des dossier d'inclusion perso
|
||||
" )
|
Loading…
Reference in New Issue
Block a user