Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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'
- " The following are examples of different formats supported.
- " Keep Plugin commands between vundle#begin/end.
- " plugin on GitHub repo
- Plugin 'tpope/vim-fugitive'
- " plugin from http://vim-scripts.org/vim/scripts.html
- " Plugin 'L9'
- " Git plugin not hosted on GitHub
- Plugin 'git://git.wincent.com/command-t.git'
- " git repos on your local machine (i.e. when working on your own plugin)
- " Plugin 'file:///home/gmarik/path/to/plugin'
- " The sparkup vim script is in a subdirectory of this repo called vim.
- " Pass the path to set the runtimepath properly.
- Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
- " Avoid a name conflict with L9
- " Plugin 'user/L9', {'name': 'newL9'}
- " YouCompleteMe
- Plugin 'Valloric/YouCompleteMe'
- " Syntastic
- Plugin 'scrooloose/syntastic'
- " Plugin 'bling/vim-airline'
- Plugin 'majutsushi/tagbar'
- Plugin 'vim-scripts/a.vim'
- Plugin 'rdnetto/YCM-Generator'
- " typescript syntax hilighting
- Plugin 'leafgarland/typescript-vim'
- " typescript omni, code completion
- Plugin 'Quramy/tsuquyomi'
- " This plugin was recommended by tsququyomi - It enables interactive command execution
- Plugin 'Shougo/vimproc.vim'
- " typescript and vim indentation plugin
- Plugin 'jason0x43/vim-js-indent'
- " Zen-Coding vim Plugin (for generating html snippets from CSS selectors)
- Plugin 'mattn/emmet-vim'
- " This is the aggregation of all the various Perl-related syntax and helper files for Perl 5 and Perl 6.
- Plugin 'vim-perl/vim-perl'
- " Vastly improved Javascript indentation and syntax support in Vim.
- Plugin 'pangloss/vim-javascript'
- " Vim/Ruby Configuration Files
- Plugin 'vim-ruby/vim-ruby'
- " endwise.vim: wisely add "end" in ruby, endfunction/endif/more in vim script, etc
- Plugin 'tpope/vim-endwise'
- let g:typescript_compiler_options="--experimentalDecorators"
- " All of your Plugins must be added before the following line
- call vundle#end() " required
- filetype plugin indent on " required
- " To ignore plugin indent changes, instead use:
- "filetype plugin on
- "
- " Brief help
- " :PluginList - lists configured plugins
- " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
- " :PluginSearch foo - searches for foo; append `!` to refresh local cache
- " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
- "
- " see :h vundle for more details or wiki for FAQ
- " Put your non-Plugin stuff after this line
- " END OF VUNDLE STUFF
- set runtimepath+=~/.vim_runtime
- " DISABLE THESE
- source ~/.vim_runtime/vimrcs/basic.vim
- source ~/.vim_runtime/vimrcs/filetypes.vim
- source ~/.vim_runtime/vimrcs/plugins_config.vim
- source ~/.vim_runtime/vimrcs/extended.vim
- try
- source ~/.vim_runtime/my_configs.vim
- catch
- endtry
- set nofoldenable
- " This will make vim reload its configuration file whenever it changes.
- augroup reload_vimrc " {
- autocmd!
- autocmd BufWritePost $MYVIMRC source $MYVIMRC
- augroup END " }
- " Enables HTML/CSS syntax highlighting in your JavaScript file.
- let g:javascript_enable_domhtmlcss = 1
- " enable automatic generation of { / END
- if !exists( "*RubyEndToken" )
- function RubyEndToken()
- let current_line = getline( '.' )
- let braces_at_end = '{\s*\(|\(,\|\s\|\w\)*|\s*\)\?$'
- let stuff_without_do = '^\s*\(class\|if\|unless\|begin\|case\|for\|module\|while\|until\|def\)'
- let with_do = 'do\s*\(|\(,\|\s\|\w\)*|\s*\)\?$'
- if match(current_line, braces_at_end) >= 0
- return "\<CR>}\<C-O>O"
- elseif match(current_line, stuff_without_do) >= 0
- return "\<CR>end\<C-O>O"
- elseif match(current_line, with_do) >= 0
- return "\<CR>end\<C-O>O"
- else
- return "\<CR>"
- endif
- endfunction
- endif
- imap <buffer> <CR> <C-R>=RubyEndToken()<CR>
Add Comment
Please, Sign In to add comment