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/php.vim.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 shiftwidth=2|
\ 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 '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 'file:///home/darkelfe/Git/vim-highlight'

@ -1,27 +1,32 @@
" Couper, copier et coller avec le presse-papier du système
if has('x11') && has('clipboard')
:nmap <silent> <C-F10> "+dd
:nmap <silent> <S-F10> "+yy
:nmap <silent> <F10> "+p
:nmap <C-F10> "+dd
:nmap <S-F10> "+yy
:nmap <F10> "+p
:vmap <silent> <C-F10> "+d
:vmap <silent> <S-F10> "+ygv
:vmap <silent> <F10> "+p
:vmap <C-F10> "+d
:vmap <S-F10> "+y
:vmap <F10> "+p
:imap <silent> <C-F10> <Esc>"+ddi
:imap <silent> <S-F10> <Esc>"+yyi
:imap <silent> <F10> <Esc>"+pi
:imap <C-F10> <Esc>"+ddi
:imap <S-F10> <Esc>"+yyi
:imap <F10> <Esc>"+pi
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 <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
:nmap <silent> <C-s> :w<CR> " Sauvegarder
:nmap <silent> <C-q> :q<CR> " Ferme le fichier actuel
:nmap <silent> <C-S-q> :qa<CR> " Quitter (fermer tous)
" Sauvegarder
:nmap <silent> <C-s> :w<CR>
: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
:nnoremap <silent> <C-Down> ddp
@ -77,6 +82,7 @@ endif
" Autocomplétion
:imap <silent> <F2> 
:imap <silent> <C-n> 
:imap <silent> <F3> 
:imap <silent> <F4> 

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