Advertisement
Guest User

Untitled

a guest
Nov 6th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 3.26 KB | None | 0 0
  1. set nocompatible              " be iMproved, required
  2. filetype off                  " required
  3.  
  4. "enable mouse support
  5. "set mouse=a
  6.  
  7. " style
  8. set tabstop=4
  9. set shiftwidth=4
  10. set expandtab
  11.  
  12. " ultisnip
  13. let g:UltiSnipsExpandTrigger="<c-j>"
  14. let g:UltiSnipsJumpForwardTrigger="<c-b>"
  15. let g:UltiSnipsJumpBackwardTrigger="<c-z>"
  16.  
  17. " rust
  18. let g:rustfmt_autosave = 1
  19. let g:rust_clip_command = 'xclip -selection clipboard'
  20.  
  21. let g:tagbar_type_rust = {
  22.     \ 'ctagstype' : 'rust',
  23.     \ 'kinds' : [
  24.         \'T:types,type definitions',
  25.         \'f:functions,function definitions',
  26.         \'g:enum,enumeration names',
  27.         \'s:structure names',
  28.         \'m:modules,module names',
  29.         \'c:consts,static constants',
  30.         \'t:traits',
  31.         \'i:impls,trait implementations',
  32.     \]
  33.     \}
  34.  
  35. let g:ycm_rust_src_path="/home/tobi/Developer/rust-master/src/"
  36. set number relativenumber
  37. "
  38. "
  39.  
  40. " syntastic
  41. set statusline+=%#warningmsg#
  42. set statusline+=%{SyntasticStatuslineFlag()}
  43. set statusline+=%*
  44.  
  45. let g:syntastic_always_populate_loc_list = 1
  46. let g:syntastic_auto_loc_list = 1
  47. let g:syntastic_check_on_open = 1
  48. let g:syntastic_check_on_wq = 0
  49.  
  50. " nerdtree
  51. " autocmd VimEnter * NERDTree
  52. " autocmd BufEnter * NERDTreeMirror
  53.  
  54. "CTRL-t to toggle tree view with CTRL-t
  55. "nmap <silent> <C-t> :NERDTreeToggle<CR>
  56. "Set F2 to put the cursor to the nerdtree
  57. "nmap <silent> <F2> :NERDTreeFind<CR>
  58.  
  59. " set the runtime path to include Vundle and initialize
  60. set rtp+=~/.vim/bundle/Vundle.vim
  61. call vundle#begin()
  62. " alternatively, pass a path where Vundle should install plugins
  63. "call vundle#begin('~/some/path/here')
  64. Plugin 'vim-syntastic/syntastic'
  65. " let Vundle manage Vundle, required
  66. Plugin 'Valloric/YouCompleteMe'
  67. "Plugin 'scrooloose/nerdtree'
  68. Plugin 'VundleVim/Vundle.vim'
  69. Plugin 'rust-lang/rust.vim'
  70. Plugin 'SirVer/ultisnips'
  71. Plugin 'jeffkreeftmeijer/vim-numbertoggle'
  72. Plugin 'honza/vim-snippets'
  73. " The following are examples of different formats supported.
  74. " Keep Plugin commands between vundle#begin/end.
  75. " plugin on GitHub repo
  76. Plugin 'majutsushi/tagbar'
  77. " plugin from http://vim-scripts.org/vim/scripts.html
  78. " Plugin 'L9'
  79. " Git plugin not hosted on GitHub
  80. "Plugin 'git://git.wincent.com/command-t.git'
  81. " git repos on your local machine (i.e. when working on your own plugin)
  82. "Plugin 'file:///home/gmarik/path/to/plugin'
  83. " The sparkup vim script is in a subdirectory of this repo called vim.
  84. " Pass the path to set the runtimepath properly.
  85. "Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
  86. " Install L9 and avoid a Naming conflict if you've already installed a
  87. " different version somewhere else.
  88. " Plugin 'ascenator/L9', {'name': 'newL9'}
  89.  
  90. " All of your Plugins must be added before the following line
  91. call vundle#end()            " required
  92. filetype plugin indent on    " required
  93. " To ignore plugin indent changes, instead use:
  94. "filetype plugin on
  95. "
  96. " Brief help
  97. " :PluginList       - lists configured plugins
  98. " :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
  99. " :PluginSearch foo - searches for foo; append `!` to refresh local cache
  100. " :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
  101. "
  102. " see :h vundle for more details or wiki for FAQ
  103. " Put your non-Plugin stuff after this line
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement