syntax enable set title set autoindent set expandtab " replaces tabs with spaces set tabstop=4 set hls " highlight search set softtabstop=4 set shiftwidth=4 set guifont=Monospace\ 9 if has("gui_running") set guioptions-=m " no menu set guioptions-=T " no toolbar set lines=49 set columns=169 " 2*80px vertical windows + scrollbars + linenumbers set number " line numbering " colo oceandeep " http://www.vim.org/scripts/script.php?script_id=368 " colo desert colo moria " http://www.vim.org/scripts/script.php?script_id=1464 endif set ignorecase " case insensitive search set smartcase if has("autocmd") autocmd BufEnter * :cd %:p:h endif set nosmartindent set cindent set copyindent filetype plugin indent on set wildmode=longest,list " smart autocomplete for commands/files on tab set wildmenu set nocompatible " undo and other things set isk+=_,$,@,%,#,- " none of these should be word dividers set ruler " always show current position along the bottom " set number " line numbering " set mouse=a " use mouse even in command line vim set noerrorbells " don't make noise " splitters between windows are blank: set fillchars=vert:\ ,stl:\ ,stlnc:\ " set nohlsearch " do not highlight searched for phrases set incsearch " BUT do highlight as you type you search phrase " 2 visible whitespace with 's' set listchars=tab:>-,trail:·,eol:$ nmap s :set nolist! map :bp " left arrow (normal mode) switches buffers map :bn " right arrow (normal mode) switches buffers autocmd FileType python set omnifunc=pythoncomplete#Complete autocmd FileType html set omnifunc=htmlcomplete#CompleteTags autocmd FileType css set omnifunc=csscomplete#CompleteCSS map :FuzzyFinderBuffer if !exists(":DiffOrig") command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis \ | wincmd p | diffthis endif :abbr DATE =strftime("%Y-%m-%d") :abbr TIME =strftime("%H:%M:%S") :abbr TIMESTAMP * =strftime("%a %b %d %Y") Ionuț Arțăriși :abbr EUMAIL Ionuț Arțăriși " Smart autocomplete "inoremap "inoremap =InsertTabWrapper() "function InsertTabWrapper() " let col = col('.') - 1 " if !col || getline('.')[col - 1] !~ '\k' " return "\" " else " return "\" " endif "endfunction