set nocompatible " be iMproved, required filetype off " required " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " alternatively, pass a path where Vundle should install plugins "call vundle#begin('~/some/path/here') " let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim' Plugin 'tpope/vim-surround' Plugin 'tpope/vim-repeat' Plugin 'tpope/vim-speeddating' Plugin 'tpope/vim-fugitive' Plugin 'vim-latex/vim-latex' Plugin 'vim-scripts/ReplaceWithRegister' Plugin 'vim-erlang/vim-erlang-runtime' Plugin 'zchee/deoplete-jedi' Plugin 'leafgarland/typescript-vim' Plugin 'sirtaj/vim-openscad' Plugin 'tmhedberg/matchit' Plugin 'nanotech/jellybeans.vim' Plugin 'kien/ctrlp.vim' Plugin 'Shougo/deoplete.nvim' Plugin 'agude/vim-eldar' call vundle#end() " required filetype plugin indent on " required colorscheme eldar syntax enable set number relativenumber set tabstop=4 set shiftwidth=4 set softtabstop=4 set noexpandtab let g:deoplete#enable_at_startup = 1 inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" tnoremap " Map C-s noremap :update " Make ToBegin and ToEnd function! InputChar() let c = getchar() return type(c) == type(0) ? nr2char(c) : c endfunction function! ToEnd() let s = InputChar() if s =~ "\" || s =~ "\" return endif execute "normal! vi". s. "\" endfunction function! ToBegin() call ToEnd() execute "'<" endfunction nnoremap ge :call ToEnd() nnoremap gb :call ToBegin()