" 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 inoremap nnoremap ik$x vnoremap . :normal vnoremap < >gv nnoremap cc :let &cc = 81 - &cc:set cc? nnoremap cd :set autochdir!:set autochdir? nnoremap ec :tabedit ~/.vim/colors/my.vim nnoremap em :let @/="" nnoremap ev :tabedit ~/.vimrc nnoremap hl :set hlsearch!:set hlsearch? nnoremap nh :nohlsearch nnoremap ht T nnoremap il :IndentLinesToggle nnoremap nu :set number! nnoremap rn :set relativenumber! nnoremap rv :update :source ~/.vimrc:nohlsearch nnoremap so :let &so = 50 - &so:set so? nnoremap tw :let &tw = 1000080 - &tw:set tw? nnoremap ta :tab sball nnoremap wr :set wrap!:set wrap? nnoremap lk :hi StatusLine ctermfg=white ctermbg=black nnoremap o o nnoremap O O