Merge branch 'master' of github.com:darkelfe/consoleConfig

master
Julien Rosset 11 years ago
commit 782dab65fb

@ -1 +1 @@
Subproject commit 8db3bcb5921103f0eb6de361c8b25cc03cb350b5 Subproject commit 0b28e334e65b6628b0a61c412fcb45204a2f2bab

@ -4,3 +4,6 @@ runtime config/plugin/tagbar.vim
runtime config/plugin/vim-yardoc.vim runtime config/plugin/vim-yardoc.vim
runtime config/plugin/php.vim.vim runtime config/plugin/php.vim.vim
runtime config/plugin/vim-highlight.vim runtime config/plugin/vim-highlight.vim
runtime config/plugin/jscomplete-vim.vim
runtime config/plugin/vim-javascript-syntax.vim
runtime config/plugin/javascript-libraries-syntax.vim

@ -24,3 +24,5 @@ autocmd BufEnter apti,*.rb " Apti (ruby) : tabulation = 2 espaces
\ set tabstop=2| \ set tabstop=2|
\ set shiftwidth=2| \ set shiftwidth=2|
\ set expandtab \ set expandtab
autocmd BufEnter *.js :%foldo!

@ -0,0 +1 @@
let g:used_javascript_libs = 'jquery'

@ -0,0 +1,2 @@
autocmd FileType javascript setl omnifunc=jscomplete#CompleteJS
let g:jscomplete_use = ['dom']

@ -0,0 +1 @@
autocmd FileType javascript call JavaScriptFold()

@ -22,6 +22,10 @@ Plugin 'ChrisYip/Better-CSS-Syntax-for-Vim'
Plugin 'noprompt/vim-yardoc' Plugin 'noprompt/vim-yardoc'
Plugin 'php.vim--Hodge' Plugin 'php.vim--Hodge'
Plugin 'https://bitbucket.org/teramako/jscomplete-vim.git'
Plugin 'jelera/vim-javascript-syntax'
Plugin 'othree/javascript-libraries-syntax.vim'
"Plugin 'darkelfe/vim-highlight' "Plugin 'darkelfe/vim-highlight'
"Plugin 'file:///home/darkelfe/Git/vim-highlight' "Plugin 'file:///home/darkelfe/Git/vim-highlight'

@ -1,27 +1,32 @@
" Couper, copier et coller avec le presse-papier du système " Couper, copier et coller avec le presse-papier du système
if has('x11') && has('clipboard') if has('x11') && has('clipboard')
:nmap <silent> <C-F10> "+dd :nmap <C-F10> "+dd
:nmap <silent> <S-F10> "+yy :nmap <S-F10> "+yy
:nmap <silent> <F10> "+p :nmap <F10> "+p
:vmap <silent> <C-F10> "+d :vmap <C-F10> "+d
:vmap <silent> <S-F10> "+ygv :vmap <S-F10> "+y
:vmap <silent> <F10> "+p :vmap <F10> "+p
:imap <silent> <C-F10> <Esc>"+ddi :imap <C-F10> <Esc>"+ddi
:imap <silent> <S-F10> <Esc>"+yyi :imap <S-F10> <Esc>"+yyi
:imap <silent> <F10> <Esc>"+pi :imap <F10> <Esc>"+pi
endif endif
" Coloration syntaxique (debugage)
:nmap <C-y> :echo "id : '".synID(line("."), col("."), 0)."' - group : '".synIDattr(synID(line("."), col("."), 0), "name")."' - color : '".synIDattr(synIDtrans(synID(line("."), col("."), 0)), "name")."'"<CR> :nmap <C-y> :echo "id : '".synID(line("."), col("."), 0)."' - group : '".synIDattr(synID(line("."), col("."), 0), "name")."' - color : '".synIDattr(synIDtrans(synID(line("."), col("."), 0)), "name")."'"<CR>
:nmap <S-y> :echo "id : '".synID(line("."), col("."), 1)."' - group : '".synIDattr(synID(line("."), col("."), 1), "name")."' - color : '".synIDattr(synIDtrans(synID(line("."), col("."), 1)), "name")."'"<CR> :nmap <S-y> :echo "id : '".synID(line("."), col("."), 1)."' - group : '".synIDattr(synID(line("."), col("."), 1), "name")."' - color : '".synIDattr(synIDtrans(synID(line("."), col("."), 1)), "name")."'"<CR>
" Opérations standards " Opérations standards
:nmap <silent> <C-s> :w<CR> " Sauvegarder " Sauvegarder
:nmap <silent> <C-q> :q<CR> " Ferme le fichier actuel :nmap <silent> <C-s> :w<CR>
:nmap <silent> <C-S-q> :qa<CR> " Quitter (fermer tous) :imap <silent> <C-S> <Esc>:w<CR>i
:vmap <silent> <C-s> <Esc>:w<CR>gv
:nmap <silent> <C-S-a> ggVG " Selectionner tout :nmap <silent> <C-q> :q<CR>
:nmap <silent> <C-S-q> :qa<CR>
:nmap <silent> <S-a> ggVG
" Déplacement ligne vers le haut / bas " Déplacement ligne vers le haut / bas
:nnoremap <silent> <C-Down> ddp :nnoremap <silent> <C-Down> ddp
@ -77,6 +82,7 @@ endif
" Autocomplétion " Autocomplétion
:imap <silent> <F2>  :imap <silent> <F2> 
:imap <silent> <C-n> 
:imap <silent> <F3>  :imap <silent> <F3> 
:imap <silent> <F4>  :imap <silent> <F4> 

@ -1 +1 @@
Subproject commit 5320f1e18d5782e29a6637937e37a3aecf9327bb Subproject commit 3dc574190071ef59054f6d693132410b37aa3ae4
Loading…
Cancel
Save