146 lines
4.3 KiB
VimL
146 lines
4.3 KiB
VimL
" All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually just
|
|
" /usr/share/vim/vimcurrent/debian.vim) and sourced by the call to :runtime
|
|
" you can find below. If you wish to change any of those settings, you should
|
|
" do it in this file (/etc/vim/vimrc), since debian.vim will be overwritten
|
|
" everytime an upgrade of the vim packages is performed. It is recommended to
|
|
" make changes after sourcing debian.vim since it alters the value of the
|
|
" 'compatible' option.
|
|
|
|
" This line should not be removed as it ensures that various options are
|
|
" properly set to work with the Vim-related packages available in Debian.
|
|
runtime! debian.vim
|
|
|
|
" colorscheme jellybeans
|
|
" colorscheme molokai
|
|
" colorscheme vitamins
|
|
" colorscheme badwolf
|
|
" colorscheme wombat
|
|
" colorscheme mirodark
|
|
colorscheme hybrid
|
|
" colorscheme apprentice
|
|
|
|
" Uncomment the next line to make Vim more Vi-compatible
|
|
" NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous
|
|
" options, so any other options should be set AFTER setting 'compatible'.
|
|
"set compatible
|
|
|
|
" Vim5 and later versions support syntax highlighting. Uncommenting the next
|
|
" line enables syntax highlighting by default.
|
|
syntax on
|
|
|
|
" If using a dark background within the editing area and syntax highlighting
|
|
" turn on this option as well
|
|
set background=dark
|
|
|
|
" Uncomment the following to have Vim jump to the last position when
|
|
" reopening a file
|
|
"if has("autocmd")
|
|
" au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
|
|
"endif
|
|
|
|
" Uncomment the following to have Vim load indentation rules and plugins
|
|
" according to the detected filetype.
|
|
"if has("autocmd")
|
|
" filetype plugin indent on
|
|
"endif
|
|
|
|
" The following are commented out as they cause vim to behave a lot
|
|
" differently from regular Vi. They are highly recommended though.
|
|
"set showcmd " Show (partial) command in status line.
|
|
"set showmatch " Show matching brackets.
|
|
"set ignorecase " Do case insensitive matching
|
|
"set smartcase " Do smart case matching
|
|
"set incsearch " Incremental search
|
|
"set autowrite " Automatically save before commands like :next and :make
|
|
"set hidden " Hide buffers when they are abandoned
|
|
set statusline=%#StatusLineNC#\ Git\ %#ErrorMsg#\ %{GitBranchInfoTokens()[0]}\ %#StatusLine#
|
|
|
|
" less css
|
|
call pathogen#infect()
|
|
|
|
set rtp+=~/.vim/bundle/Vundle.vim
|
|
call vundle#begin()
|
|
Plugin 'SirVer/ultisnips'
|
|
Plugin 'honza/vim-snippets'
|
|
let g:UltiSnipsExpandTrigger="<tab>"
|
|
let g:UltiSnipsJumpForwardTrigger="<c-b>"
|
|
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
|
|
let g:UltiSnipsEditSplit="vertical"
|
|
|
|
if has("autocmd")
|
|
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
|
|
\| exe "normal! g'\"" | endif
|
|
endif
|
|
|
|
"let g:airline_powerline_fonts = 1
|
|
|
|
|
|
" TETRIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIS
|
|
let mapleader = "_"
|
|
" appuyer sur '_' puis 'te'
|
|
|
|
map <F1> :!indentation %<CR>
|
|
map <F2> :call PhpCsFixerFixFile()<CR>
|
|
map <F7> :r!namespace %<CR>
|
|
map <F8> :!phpmd % text /usr/share/phpmd/psr2.xml \| cut -d: -f2-<CR>
|
|
map <F10> :%!/home/simon/bin/indentation<CR>
|
|
map <c-B> :!php -l %<CR>
|
|
map <c-O> :CommandT<CR>
|
|
map <c-s> :w<CR>
|
|
|
|
" Zencoding
|
|
let g:user_zen_expandabbr_key = '<c-e>'
|
|
let g:use_zen_complete_tag = 1
|
|
" / Zencoding
|
|
|
|
|
|
set statusline=%<%f%=%([%{Tlist_Get_Tagname_By_Line()}]%)
|
|
|
|
set mouse=a " Enable mouse usage (all modes)
|
|
set autoindent
|
|
set nu
|
|
set showmatch
|
|
set tabstop=4
|
|
set shiftwidth=4
|
|
set softtabstop=4
|
|
set incsearch
|
|
set wildmenu
|
|
set cursorline
|
|
|
|
set omnifunc=syntaxcomplete#Complete
|
|
|
|
" repli de code----------------------------------
|
|
"set foldenable " activation
|
|
"set foldcolumn=0 " décalage des replis
|
|
"set foldmethod=marker " method de fonctionnement
|
|
"set foldmarker={,}
|
|
" -----------------------------------------------
|
|
|
|
"set spelllang=fr,en
|
|
"set spell
|
|
"set spellsuggest =5
|
|
|
|
|
|
"set foldmethod=syntax
|
|
"set foldtext=MyFoldText()
|
|
|
|
" Source a global configuration file if available
|
|
if filereadable("/etc/vim/vimrc.local")
|
|
source /etc/vim/vimrc.local
|
|
endif
|
|
|
|
let Tlist_Process_File_Always = 1
|
|
let Tlist_Ctags_cmd='/usr/bin/ctags'
|
|
filetype on
|
|
|
|
au BufNewFile,BufRead *.yaml,*.yml so ~/.vim/yaml.vim
|
|
au Filetype html,xml,xsl,php,jsp,jspf,twig source ~/.vim/plugin/closetag.vim"au VimEnter * NERDTree
|
|
au BufRead,BufNewFile *.twig setfiletype twig
|
|
|
|
" press K on php function
|
|
set keywordprg=pman
|
|
|
|
let g:syntastic_php_checkers = ['php', 'phpcs', 'phpmd']
|
|
|
|
map <F6> :call PhpInsertUse()<CR>
|