123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293 |
- call plug#begin('~/.vim/plugged')
- Plug 'junegunn/indentLine'
- Plug 'sjl/gundo.vim'
- Plug 'scrooloose/syntastic'
- Plug 'majutsushi/tagbar'
- Plug 'scrooloose/nerdtree'
- Plug 'bling/vim-airline'
- Plug 'kien/ctrlp.vim'
- Plug 'tpope/vim-fugitive'
- Plug 'airblade/vim-gitgutter'
- Plug 'gregsexton/gitv'
- Plug 'terryma/vim-multiple-cursors'
- Plug 'jlanzarotta/bufexplorer'
- Plug 'flazz/vim-colorschemes'
- Plug 'vim-scripts/comments.vim'
- Plug 'ervandew/supertab'
- Plug 'rstacruz/sparkup'
- Plug 'Lokaltog/vim-easymotion'
- Plug 'editorconfig/editorconfig-vim'
- Plug 'godlygeek/tabular'
- Plug 'plasticboy/vim-markdown'
- Plug 'http://git.openics.org/kolter/vim-bindzone.git'
- call plug#end()
- if has('autocmd')
- filetype plugin indent on
-
-
-
- autocmd BufRead *.txt set tw=78
- autocmd QuickFixCmdPre * botright cwindow 5
- endif
- if &term =~ '^screen'
-
- execute "set <xUp>=\e[1;*A"
- execute "set <xDown>=\e[1;*B"
- execute "set <xRight>=\e[1;*C"
- execute "set <xLeft>=\e[1;*D"
- endif
- set nocompatible
- set history=1000
- set undolevels=120
- set autoread
- set autochdir
- set clipboard+=unnamed
- set backup
- set backupdir=~/.vim/backups
- set directory=~/.vim/tmp
- if has("multi_byte")
- if &termencoding == ""
- let &termencoding = &encoding
- endif
- set encoding=utf-8
- setglobal fileencoding=utf-8
- set fileencodings=utf-8,default,latin1,ucs-bom
- endif
- syntax on
- set t_Co=256
- set bg=dark
- colorscheme grb256
- set title
- set number
- set ruler
- set visualbell t_vb=
- set showcmd
- set confirm
- "set mouse=a "enable mouse support
- set lazyredraw
- set ttyfast
- set ttimeout
- set ttimeoutlen=100
- set scrolloff=999
- set sidescrolloff=5
- set shortmess=a
- set laststatus=2
- set wildmenu
- set wildmode=list:longest,list:full
- set wildchar=<TAB>
- set modeline
- set modelines=3
- nmap <c-a> <c-o>I
- imap <c-a> <c-o>I
- vmap <c-a> <c-o>I
- nmap <c-e> <c-o>A
- imap <c-e> <c-o>A
- vmap <c-e> <c-o>A
- map <F5> :e!<cr>
- nnoremap <c-L> :nohl<cr><c-L>
- nmap <F1> :bp<cr>
- imap <F1> <ESC>:bp<cr>a
- nmap <F2> :bn<cr>
- imap <F2> <ESC>:bn<cr>a
- imap <c-@> <c-x><c-o>
- nmap <c-s-left> :tabprevious<cr>
- nmap <c-s-right> :tabnext<cr>
- nmap <c-s-up> :tabnew<cr>
- nmap <c-s-down> :tabclose<cr>
- nmap <c-d> :bw<cr>
- nmap <F6> :vsplit<cr>
- nmap <F7> :split<cr>
- map <c-left> <c-w>h
- map <c-right> <c-w>l
- map <c-Up> <c-w>k
- map <c-Down> <c-w>j
- vmap > >gv
- vmap < <gv
- set fileformats=unix,dos,mac
- set hidden
- set report=0
- set pastetoggle=<F11>
- set nostartofline
- set autoindent
- set backspace=indent,eol,start
- set smartindent
- set cindent
- set smarttab
- set expandtab
- set tabstop=4
- set shiftwidth=4
- set shiftround
- set softtabstop=4
- set showmatch
- set nowrap
- if has("multi_byte")
- set showbreak="…"
- else
- set showbreak="+++"
- endif
- set list
- if has("multi_byte")
- set listchars=trail:·,extends:>,precedes:<,nbsp:•,tab:▷\⋅
- else
- set listchars=tab:>.,trail:·,extends:>,precedes:<,nbsp:%
- endif
- set hlsearch
- set incsearch
- set ignorecase
- set infercase
- set foldmethod=indent
- set foldnestmax=10
- set nofoldenable
- set foldlevel=1
- if has('autocmd')
- autocmd BufRead ~/.mutt/tmp/mutt-* set filetype=mail
- autocmd FileType mail set autoindent expandtab nocindent formatoptions=tcqn
- autocmd FileType mail vmap D dO[...]<CR>
- autocmd FileType mail call EnableSpellChecking()
- endif
- function! EnableSpellChecking()
- setlocal spell spelllang=fr,en_us
- let b:spell = 1
- endfunction
- function! DisableSpellChecking()
- setlocal nospell
- unlet b:spell
- endfunction
- function! ToggleSpell()
- if !exists("b:spell")
- execute 'call EnableSpellChecking()'
- else
- execute 'call DisableSpellChecking()'
- endif
- endfunction
- nmap <F4> :call ToggleSpell()<CR>
- imap <F4> <Esc>:call ToggleSpell()<CR>a
- let g:gundo_right = 1
- let g:gundo_width = 60
- let g:gundo_preview_height = 40
- let g:gundo_tree_statusline = "Gundo"
- let g:gundo_preview_statusline = "Gundo Preview"
- let g:gundo_preview_bottom = 1
- let g:gundo_close_on_revert = 1
- nnoremap <F3> :GundoToggle<CR>
- let g:syntastic_auto_loc_list = 1
- let g:syntastic_error_symbol = 'EE'
- let g:syntastic_style_error_symbol = 'ee'
- let g:syntastic_warning_symbol = 'WW'
- let g:syntastic_style_warning_symbol = 'Ws'
- let g:ctrlp_map = '<c-o>'
- let g:ctrlp_max_height = 20
- map <c-b> :CtrlPBuffer<cr>
- let g:airline_powerline_fonts=1
- let g:airline#extensions#tabline#enabled=1
- nmap <F8> :TagbarToggle<CR>
|