" set bg=light " ignores case in search set ic "Disable compatibility with vi which can cause unexpected issues. set nocompatible " set to system clipboard set clipboard=unnamedplus " Enable type file detection. Vim will be able to try to detect the type of file in use. filetype on " Enable plugins and load plugin for the detected file type. filetype plugin on " Load an indent file for the detected file type. filetype indent on " Add numbers to each line on the left-hand side. set number relativenumber " Turn syntax highlighting on. syntax on " Enable auto completion menu after pressing TAB. set wildmenu " Make wildmenu behave like similar to Bash completion. "set wildmode=list:longest set wildmode=longest,list,full " There are certain files that we would never want to edit with Vim. " Wildmenu will ignore files with these extensions. set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx " set wrap enable set wrap " set tab size set tabstop=4 set softtabstop=4 set shiftwidth=4 set encoding=utf-8 " split open at the bottem and right set splitbelow splitright " easier nav map h map j map k map l " supposed to map urlview. doesnt fucking work. figures " :noremap u :wsilent !urlview nnoremap S :%s//g nnoremap :tabnew " au VimEnter * silent! !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' au VimLeave * silent! !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Caps_Lock'> map vnoremap "+y map "+P " add vimrc.plug if filereadable(expand("~.vimrc.plug")) source ~/.vimrc.plug endif " auto delete trailing whitespace on save autocmd BufWritePre * %s/\s\+$//e