let g:neosnippet#snippets_directory='~/.vim/bundle/snipmate-snippets/snippets' if has('conceal') set conceallevel=2 concealcursor=i endif nnoremap autoformat! :%s/, /,:%s/ \/ /\/:%s/ {/{:%s/} /}:%s/ = /= command! W %!sudo tee > /dev/null % autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o autocmd FileType * :hi IndentGuidesOdd guibg=red ctermbg=239 autocmd FileType * :hi IndentGuidesEven guibg=white ctermbg=239 au VimResized * exe "normal! \=" au BufRead,BufNewFile *.twig set filetype=htmljinja "match Error /\s\+$/ "nnoremap s xa "nnoremap :UndotreeToggle inoremap pumvisible() ? "\" : "\" imap \ neosnippet#expandable_or_jumpable() ? "\(neosnippet_expand_or_jump)" : pumvisible() ? "\" : "\" smap \ neosnippet#expandable_or_jumpable() ? "\(neosnippet_expand_or_jump)" : "\" nnoremap \| vl nnoremap - sj nnoremap q nnoremap :!make&&echo "Uploading robot code";wput ./PPC603gnu/src/Debug/src.out ftp://frc:frc@10.20.59.2/ni-rt/system/FRC_UserProgram.out nnoremap G G$ vnoremap G G$ nnoremap :GundoToggle nnoremap :TagbarToggle nnoremap + nnoremap - nnoremap Q noremap nnoremap a :!git st:!ls:!git a nnoremap up :!git pull origin nnoremap st :!git st nnoremap ci :!git st:!git ci "" nnoremap log :!git hist nnoremap br :!git br nnoremap gb :ls:b nnoremap d :bd nnoremap q :q nnoremap W :%s/\s\+$//:let @/='' nnoremap o m`o`` nnoremap O m`O`` nnoremap go %m`%x`` nnoremap if m"Oif(){jo}`"v>k^wa nnoremap else m"kAelse{jo}`"v> nnoremap for m"Ofor(){jo}`"v>k^wa nnoremap while m"Owhile(){jo}`"v>k^wa nnoremap rm m"kddjddkv<`" nnoremap { O//{{{jo//}}}kk^la vnoremap { ``>o//}}}`if ``>o}gv>`else ``>o}gv> vnoremap for ``>o}gv>`while ``>o}gv>`rm `<kdd`>jddgv< vnoremap * :call VisualSelection('f') vnoremap # :call VisualSelection('b') "nnoremap zo:set hlsearch! hlsearch? "nnoremap :nohlsearchgzo nnoremap :nohlsearchgzo nnoremap U nnoremap K ik$ nnoremap :upg "nnoremap s c vnoremap gj j vnoremap gk k vnoremap j gj vnoremap k gk vnoremap H ^ vnoremap L $h nnoremap gj j nnoremap gk k nnoremap j gj nnoremap k gk nnoremap H ^ nnoremap L $ nnoremap h nnoremap j nnoremap k nnoremap l map , (easymotion-prefix) noremap ! :! nnoremap ; : noremap J Jx vnoremap < >gv inoremap vnoremap noremap :ls:b nnoremap == yyPv$r=jyypv$r= nnoremap ** yyPv$r*jyypv$r* nnoremap = yypv$r= nnoremap - yypv$r- nnoremap ^ yypv$r^ nnoremap " yypv$r" inoremap '' '' inoremap "" "" inoremap () () inoremap <> <> inoremap {} {}O inoremap {% {% %} inoremap [] [] inoremap ;;; A inoremap ;; m`A;``a inoremap ;; A;o nnoremap ;; m"A;`" nnoremap ;; A;o inoremap inoremap inoremap inoremap nnoremap Y y$ nnoremap w nnoremap W nnoremap :bp nnoremap :bn nnoremap z _| nnoremap bn G?Bundleyyp$hdi'"+gP0Wl3d/\/x:nohlsearch:up:BundleInstall nnoremap :CtrlPFunky nmap [e nmap ]e vmap [egv vmap ]egv set guicursor+=n-v-c:blinkon0 set formatoptions-=r set formatoptions-=o set diffopt+=iwhite set noesckeys set mouse-=a set shiftwidth=2 set tabstop=2 set softtabstop=2 set expandtab set history=1000 set hidden set cursorline set incsearch set showmatch set hlsearch set scrolloff=3 set scrolljump=5 set autoindent set backup set backupdir=~/.vim/backup set directory=~/.vim/tmp set undolevels=1000 set history=200 set ttyfast set ff=unix set encoding=utf-8 set laststatus=2 set foldmethod=marker set foldnestmax=10 set foldlevel=2 set rnu set nu set ts=2 sw=2 et set background=dark set t_Co=256 set gdefault set nocompatible set rtp+=~/.vim/bundle/vundle/ syntax on let g:airline_left_sep='▶' let g:airline_right_sep='◀' let g:airline#extensions#syntastic#enabled = 1 let g:airline#extensions#whitespace#enabled = 0 let g:airline#extensions#whitespace#show_message = 0 let g:airline#extensions#tmuxline#enabled = 1 let g:formatprg_cpp = "astyle" let g:formatprg_args_expr_cpp = " --mode=c --style=1tbs -xe -k1 -j" let g:syntastic_java_javac_classpath = "/Applications/Android Studio.app/sdk/platforms/android-19/*.jar" " These flags don't work for some reason " -xn -xc -xl -S "let g:airline#extensions#tabline#enabled=1 let g:Powerline_symbols = 'fancy' let g:indent_guides_start_level=2 let g:indent_guides_guide_size=1 let g:indent_guides_enable_on_vim_startup=1 let g:neocomplcache_enable_at_startup=1 let g:neocomplcache_enable_camel_case_completion=1 let g:neocomplcache_enable_smart_case=1 let g:neocomplcache_enable_underbar_completion=1 let g:neocomplcache_enable_auto_delimiter=1 let g:neocomplcache_max_list=20 let g:neocomplcache_force_overwrite_completefunc=1 let g:neocomplcache_min_syntax_length = 2 let g:php_refactor_command='php /usr/local/bin/refactor.phar' let g:ctrlp_extensions=['funky'] "inoremap neocomplcache#smart_close_popup()."\" "let g:neocomplcache_enable_auto_select = 1 let loaded_matchit = 1 filetype off call vundle#rc() "Bundle 'Floobits/floobits-vim' "Bundle 'tsaleh/vim-matchit' "Bundle 'Shougo/neosnippet' "Bundle 'honza/vim-snippets' "Bundle 'msanders/snipmate.vim' "Bundle 'vim-scripts/YankRing.vim' "Bundle 'majutsushi/tagbar' Bundle 'gmarik/vundle' Bundle 'Chiel92/vim-autoformat' Bundle 'tpope/vim-surround' Bundle 'scrooloose/syntastic' Bundle 'Shougo/neocomplcache.vim' Bundle 'nathanaelkane/vim-indent-guides' Bundle 'elzr/vim-json' Bundle 'groenewege/vim-less' Bundle 'pangloss/vim-javascript' Bundle 'briancollins/vim-jst' Bundle 'kchmck/vim-coffee-script' Bundle 'Lokaltog/powerline-fonts' Bundle 'bling/vim-airline' Bundle 'terryma/vim-multiple-cursors' Bundle 'scrooloose/nerdtree' Bundle 'altercation/vim-colors-solarized' Bundle 'spf13/vim-colors' Bundle 'spf13/PIV' Bundle 'vim-scripts/AutoTag' Bundle 'Lokaltog/vim-easymotion' Bundle 'sjl/gundo.vim' Bundle 'tommcdo/vim-exchange' Bundle 'tpope/vim-repeat' Bundle 'tpope/vim-commentary' Bundle 'mbbill/undotree' Bundle 'vim-php/vim-php-refactoring' Bundle 'tpope/vim-fugitive' Bundle 'tpope/vim-unimpaired' Bundle 'kien/ctrlp.vim' Bundle 'godlygeek/tabular' Bundle 'tpope/vim-abolish' Bundle 'tacahiroy/ctrlp-funky' filetype plugin indent on if exists("+undofile") if isdirectory($HOME . '/.vim/undo') == 0 :silent !mkdir -p ~/.vim/undo > /dev/null 2>&1 endif set undodir=./.vim-undo// set undodir+=~/.vim/undo// set undofile endif augroup vimrcEx au! " When editing a file, always jump to the last known cursor position. autocmd BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal g`\"" | \ endif augroup END if has('gui_running') set guioptions-=T set lines=40 "colorscheme fruity else if &term == 'xterm' || &term == 'screen' set t_Co=256 endif "colorscheme torte endif colorscheme fruity nnoremap W :%s/\s\+$//:let @/='' nnoremap H *:AckFromSearch!