filetype on filetype plugin on filetype indent on set ofu=syntaxcomplete#Complete set completeopt+=longest syntax on colorscheme molokai set tabstop=4 set shiftwidth=4 set softtabstop=4 set guifont=Monaco:h13 set number set smartindent set autoindent set nowrap set hlsearch set hidden set linespace=3 ""set relativenumber set shortmess=atI set visualbell "Highlight the curret cursorline set cursorline " highlight bg color of current line hi cursorline guibg=#333333 "For autocompletion set wildmode=list:longest "Enable code folding" set foldenable "Shortcut to fold tags with leader (,ft) nnoremap ft Vatzf "MAPPINGS FOR SPLIT VIEW " to open and maximize the split below the current one. map j_ " to open and maximize the split above the current one map k_ set wmh=0 "Opens a vertical split and switches over (,v) nnoremap v vl set splitbelow " Yank from the cursor to the end of the line, to be consistent with C and D. nnoremap Y y$ "This setting prevents vim from emulating the original vi's bugs and limitations. set nocompatible "This setting will cause the cursor to very briefly jump to a brace/parenthese/bracket's "match" whenever you type a closing or opening "brace/parenthese/bracket. set showmatch "This option gets rid of the toolbar set guioptions-=T "This setting prevents vi from making its annoying beeps when a command doesn't work. Instead, it briefly flashes the screen -- much less annoying set vb t_vb= "This setting ensures that each window contains a statusline that displays the current cursor position. set ruler "With this nifty option, vim will search for text as you enter it. For instance, if you type /bob to search for bob, vi "will go to the first "b" after you type the "b," to the first "bo" after you type the "o," and so on. It makes searching "much faster, since if you pay attention you never have to enter more than the minimum number of characters to find your "target location. Make sure that you press Enter to accept the match after vim finds the location you want. set incsearch "By default, vim doesn't let the cursor stray beyond the defined text. This setting allows the cursor to freely "roam anywhere it likes in command mode. It feels weird at first but is quite useful. set virtualedit=all "Make the command line two lines hight set ch=2 "set the search scan so that it ignores case when the search is all lower but recognizes uppercase if it's specified set ignorecase set smartcase "set the forward slash to be the slash of note. set shellslash "set the search scan to wrap lines set wrapscan "Make the "cw" and like commands put a $ at the end instead of just deleting "the text and replacing it set cpoptions=ces$ "set the status line the way I like it set stl=%f\ %m\ %r\ Line:%l/%L[%p%%]\ Col:%c "tell VIM to alwasy put a status line in, even if there is only one window set laststatus=2 "Show the current command in the lower right corner set showcmd "Hide the mouse pointer while typing set mousehide "Keep some stuff in the history set history=100 "When the page starts to scroll, keep the cursor 8 lines from the top and 8 lines from the bottom set scrolloff=8 "Make the command-line completion better set wildmenu set wildmode=list:longest "set the mapleader let mapleader = "," nmap d :cd ~/Desktop:e. nmap ev :tabedit $MYVIMRC nmap : nmap nt :NERDTreeToggle let NERDTreeShowHidden=1 " Change Working Directory to that of the current file cmap cwd lcd %:p:h " Scroll faster nnoremap 3 nnoremap 3 vnoremap 3 vnoremap 3 ":iabbrev :imap "Map escape key to jj -- much faster imap jj imap oo imap gg k " remap the backtick for easier mark jumping nnoremap ' ` nnoremap ` ' au BufRead,BufNewFile jquery.*.js set ft=javascript syntax=jquery autocmd BufRead,BufNewFile *.module set filetype=php autocmd BufRead,BufNewFile *.install set filetype=php autocmd BufRead,BufNewFile *.test set filetype=php let $CVSROOT="/Users/ingofahrentholz/cvsrep/" "http://vim.wikia.com/wiki/Make_Vim_completion_popup_menu_work_just_like_in_an_IDE set completeopt=longest,menuone "inoremap pumvisible() ? "\" : "\u\" "inoremap pumvisible() ? '' : " \ '=pumvisible() ? "\Down>" : ""' "inoremap pumvisible() ? '' : " \ '=pumvisible() ? "\Down>" : ""' " easier window navigation nmap h nmap j nmap k nmap l "Helpeful abbreviations iab lorem Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. iab llorem Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. " Use .as for ActionScript files, not Atlas files. au BufNewFile,BufRead *.as set filetype=actionscript " Put these in an autocmd group, so that we can delete them easily. au BufNewFile,BufRead *.mxml set filetype=mxml au BufNewFile,BufRead *.as set filetype=actionscript autocmd BufRead *.as set filetype=actionscript autocmd BufRead *.mxml set filetype=mxml let g:neocomplcache_enable_at_startup = 1 if has("autocmd") autocmd bufwritepost .vimrc source $MYVIMRC endif