mirror of
https://github.com/klmp200/vim-sync.git
synced 2024-12-27 10:11:10 +00:00
First release
This commit is contained in:
commit
2fc89f2655
19
install.pl
Executable file
19
install.pl
Executable file
@ -0,0 +1,19 @@
|
||||
#!/usr/bin/perl -w
|
||||
|
||||
use 5.018;
|
||||
use autodie;
|
||||
use Cwd 'realpath';
|
||||
|
||||
open my $vimrc, '>', "$ENV{'HOME'}/.vimrc";
|
||||
|
||||
my $script = realpath($0);
|
||||
my $path = $script =~ s#/(\w|\.)+\z##ar;
|
||||
|
||||
select $vimrc;
|
||||
say "let syncdir=\"$path/\"";
|
||||
say 'exec "source ".syncdir."vimrc"';
|
||||
select STDIN;
|
||||
|
||||
close $vimrc;
|
||||
|
||||
`git clone https://github.com/gmarik/vundle.git $ENV{'HOME'}.vim/bundle/vundle`
|
2
test.vimrc
Normal file
2
test.vimrc
Normal file
@ -0,0 +1,2 @@
|
||||
let syncdir="/Users/klmp200/Documents/vim-sync/"
|
||||
exec "source ".syncdir."vimrc"
|
73
vimrc
Normal file
73
vimrc
Normal file
@ -0,0 +1,73 @@
|
||||
" Configuration file for vim
|
||||
set modelines=0 " CVE-2007-2438
|
||||
|
||||
" Normally we use vim-extensions. If you want true vi-compatibility
|
||||
" remove change the following statements
|
||||
set nocompatible " Use Vim defaults instead of 100% vi compatibility
|
||||
set backspace=2 " more powerful backspacing
|
||||
filetype off
|
||||
|
||||
" Ajout de Vundle au runtime path et initialisation
|
||||
set rtp+=~/.vim/bundle/Vundle.vim
|
||||
cal vundle#begin()
|
||||
|
||||
" On indique à Vundle de s'auto-gérer
|
||||
Plugin 'gmarik/Vundle.vim'
|
||||
|
||||
" Indique ce que doit gérer Vundle
|
||||
|
||||
exec "source ".syncdir."vimrc.plugins"
|
||||
|
||||
call vundle#end()
|
||||
filetype plugin indent on
|
||||
|
||||
" Don't write backup file if vim is being called by "crontab -e"
|
||||
au BufWrite /private/tmp/crontab.* set nowritebackup nobackup
|
||||
" Don't write backup file if vim is being called by "chpass"
|
||||
au BufWrite /private/etc/pw.* set nowritebackup nobackup
|
||||
|
||||
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.bepo"
|
134
vimrc.bepo
Normal file
134
vimrc.bepo
Normal file
@ -0,0 +1,134 @@
|
||||
""
|
||||
"" mapping du clavier bépo->qwerty en mode normal
|
||||
""
|
||||
|
||||
" configuration des lettres
|
||||
|
||||
imap qq <Esc>
|
||||
|
||||
inoremap « <
|
||||
inoremap » >
|
||||
cnoremap « <
|
||||
cnoremap » >
|
||||
|
||||
inoremap < «
|
||||
inoremap > »
|
||||
cnoremap < «
|
||||
cnoremap > »
|
||||
|
||||
noremap b q
|
||||
noremap é w
|
||||
noremap p e
|
||||
noremap o r
|
||||
noremap è t
|
||||
noremap ^ y
|
||||
noremap v u
|
||||
noremap d i
|
||||
noremap l o
|
||||
noremap j p
|
||||
noremap z [
|
||||
noremap w ]
|
||||
noremap a a
|
||||
noremap u s
|
||||
noremap i d
|
||||
noremap e f
|
||||
noremap \ \
|
||||
noremap g ,
|
||||
noremap c h
|
||||
noremap t j
|
||||
noremap s k
|
||||
noremap r l
|
||||
noremap n ;
|
||||
noremap m '
|
||||
noremap ê <
|
||||
noremap à z
|
||||
noremap àà zz
|
||||
noremap y x
|
||||
noremap x c
|
||||
noremap . v
|
||||
noremap k b
|
||||
noremap ' n
|
||||
noremap q m
|
||||
noremap g ,
|
||||
noremap , g
|
||||
noremap ,, gg
|
||||
noremap h .
|
||||
noremap f /
|
||||
noremap B Q
|
||||
noremap É W
|
||||
noremap P E
|
||||
noremap O R
|
||||
noremap È T
|
||||
noremap ! Y
|
||||
noremap V U
|
||||
noremap D I
|
||||
noremap L O
|
||||
noremap J P
|
||||
noremap Z {
|
||||
noremap W }
|
||||
noremap A A
|
||||
noremap U S
|
||||
noremap I D
|
||||
noremap E F
|
||||
noremap ; G
|
||||
noremap C H
|
||||
noremap T J
|
||||
noremap S K
|
||||
noremap R L
|
||||
noremap N :
|
||||
noremap M "
|
||||
noremap Ç \|
|
||||
noremap Ê >
|
||||
noremap À Z
|
||||
noremap ÀÀ ZZ
|
||||
noremap Y X
|
||||
noremap X C
|
||||
noremap : V
|
||||
noremap K B
|
||||
noremap ? N
|
||||
noremap Q M
|
||||
noremap G <
|
||||
noremap H >
|
||||
noremap F ?
|
||||
|
||||
" configuration du copié sur le ç car y est sur la touche composé ^
|
||||
|
||||
noremap ç y
|
||||
noremap ^ y
|
||||
|
||||
" configuration des nombres
|
||||
noremap « <
|
||||
noremap < «
|
||||
noremap » >
|
||||
noremap > »
|
||||
|
||||
" configuration pour les chiffres
|
||||
|
||||
noremap $ `
|
||||
noremap " 1
|
||||
noremap « 2
|
||||
noremap » 3
|
||||
noremap ( 4
|
||||
noremap ) 5
|
||||
noremap @ 6
|
||||
noremap + 7
|
||||
noremap - 8
|
||||
noremap / 9
|
||||
noremap * 0
|
||||
noremap = -
|
||||
noremap % =
|
||||
|
||||
noremap # ~
|
||||
noremap 1 !
|
||||
noremap 2 @
|
||||
noremap 3 #
|
||||
noremap 4 $
|
||||
noremap 5 %
|
||||
noremap 6 ^
|
||||
noremap 7 &
|
||||
noremap 8 *
|
||||
noremap 9 (
|
||||
noremap 0 )
|
||||
noremap ° _
|
||||
noremap ` +
|
||||
|
14
vimrc.plugins
Normal file
14
vimrc.plugins
Normal file
@ -0,0 +1,14 @@
|
||||
Plugin 'vim-airline/vim-airline'
|
||||
Plugin 'vim-airline/vim-airline-themes'
|
||||
Plugin 'crusoexia/vim-monokai'
|
||||
Plugin 'airblade/vim-gitgutter'
|
||||
Plugin 'lfilho/cosco.vim'
|
||||
Plugin 'scrooloose/nerdtree'
|
||||
Plugin 'scrooloose/nerdcommenter'
|
||||
Plugin 'scrooloose/syntastic'
|
||||
Plugin 'Raimondi/delimitMate'
|
||||
Plugin 'vim-scripts/colorizer'
|
||||
Plugin 'SirVer/ultisnips'
|
||||
Plugin 'honza/vim-snippets'
|
||||
Plugin 'ctrlpvim/ctrlp.vim'
|
||||
Plugin 'hotchpotch/perldoc-vim'
|
Loading…
Reference in New Issue
Block a user