" All system-wide defaults are set in $VIMRUNTIME/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 " 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 " Aspect visuel (voir /home/yahya/.vimrc concernant gvim) colorscheme my2 au InsertEnter * hi StatusLine ctermfg=darkgreen ctermbg=white \ guifg=darkgreen guibg=white au InsertLeave * hi StatusLine ctermfg=white ctermbg=black \ guifg=white guibg=black if has("gui_running") set columns=86 set lines=38 set guifont=DejaVu\ Sans\ Mono\ 9 endif syntax on set omnifunc=syntaxcomplete#Complete set wildmenu set wildmode=list:longest,list:full set showmatch " Pour excuter les plugins via pathogen execute pathogen#infect() set noautoindent filetype plugin on filetype indent on set tabstop=4 set softtabstop=4 set shiftwidth=4 set colorcolumn=81 set textwidth=80 set expandtab set backspace=indent,eol,start set list listchars=tab:>-,trail:.,extends:>,precedes:< " Options diverses set lazyredraw "set clipboard=unnamed set wrapscan set scrolloff=100 set incsearch set hlsearch set ignorecase set smartcase set showcmd set showmode set mouse=a set mousef set number " set relativenumber set ruler set laststatus=2 set splitbelow set splitright " Concernant les fichiers de sauvegarde set undofile set nobackup set noswapfile " Mappings perso inoremap <Tab> <Esc> inoremap <C-[> <Esc> nnoremap <C-J> i<CR><Esc>k$x vnoremap . :normal vnoremap < <gv vnoremap > >gv nnoremap <leader>cc :let &cc = 81 - &cc<Bar>:set cc?<CR> nnoremap <leader>cd :set autochdir!<CR>:set autochdir?<CR> nnoremap <leader>ec :tabedit ~/.vim/colors/my.vim<CR> nnoremap <leader>em :let @/=""<CR> nnoremap <leader>ev :tabedit ~/.vimrc<CR> nnoremap <leader>hl :set hlsearch!<CR>:set hlsearch?<CR> nnoremap <leader>nh :nohlsearch<CR> nnoremap <leader>ht <C-W><C-]><C-W>T nnoremap <leader>il :IndentLinesToggle<CR> nnoremap <leader>nu :set number!<CR> nnoremap <leader>rn :set relativenumber!<CR> nnoremap <leader>rv :update <CR>:source ~/.vimrc<CR>:nohlsearch<CR> nnoremap <leader>so :let &so = 50 - &so<Bar>:set so?<CR> nnoremap <leader>tw :let &tw = 1000080 - &tw<Bar>:set tw?<CR> nnoremap <leader>ta :tab sball<CR> nnoremap <leader>wr :set wrap!<CR>:set wrap?<CR> nnoremap <leader>lk :hi StatusLine ctermfg=white ctermbg=black<CR> nnoremap <leader>o o<Esc> nnoremap <leader>O O<Esc>