Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible " be iMproved, required
- filetype off " required
- "enable mouse support
- "set mouse=a
- " style
- set tabstop=4
- set shiftwidth=4
- set expandtab
- " ultisnip
- let g:UltiSnipsExpandTrigger="<c-j>"
- let g:UltiSnipsJumpForwardTrigger="<c-b>"
- let g:UltiSnipsJumpBackwardTrigger="<c-z>"
- " rust
- let g:rustfmt_autosave = 1
- let g:rust_clip_command = 'xclip -selection clipboard'
- let g:tagbar_type_rust = {
- \ 'ctagstype' : 'rust',
- \ 'kinds' : [
- \'T:types,type definitions',
- \'f:functions,function definitions',
- \'g:enum,enumeration names',
- \'s:structure names',
- \'m:modules,module names',
- \'c:consts,static constants',
- \'t:traits',
- \'i:impls,trait implementations',
- \]
- \}
- let g:ycm_rust_src_path="/home/tobi/Developer/rust-master/src/"
- set number relativenumber
- "
- "
- " syntastic
- set statusline+=%#warningmsg#
- set statusline+=%{SyntasticStatuslineFlag()}
- set statusline+=%*
- let g:syntastic_always_populate_loc_list = 1
- let g:syntastic_auto_loc_list = 1
- let g:syntastic_check_on_open = 1
- let g:syntastic_check_on_wq = 0
- " nerdtree
- " autocmd VimEnter * NERDTree
- " autocmd BufEnter * NERDTreeMirror
- "CTRL-t to toggle tree view with CTRL-t
- "nmap <silent> <C-t> :NERDTreeToggle<CR>
- "Set F2 to put the cursor to the nerdtree
- "nmap <silent> <F2> :NERDTreeFind<CR>
- " 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')
- Plugin 'vim-syntastic/syntastic'
- " let Vundle manage Vundle, required
- Plugin 'Valloric/YouCompleteMe'
- "Plugin 'scrooloose/nerdtree'
- Plugin 'VundleVim/Vundle.vim'
- Plugin 'rust-lang/rust.vim'
- Plugin 'SirVer/ultisnips'
- Plugin 'jeffkreeftmeijer/vim-numbertoggle'
- Plugin 'honza/vim-snippets'
- " The following are examples of different formats supported.
- " Keep Plugin commands between vundle#begin/end.
- " plugin on GitHub repo
- Plugin 'majutsushi/tagbar'
- " 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/'}
- " Install L9 and avoid a Naming conflict if you've already installed a
- " different version somewhere else.
- " Plugin 'ascenator/L9', {'name': 'newL9'}
- " 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement