.vimrc 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. set nocompatible " be iMproved, required
  2. filetype off " required
  3. syntax on
  4. " Accomodate a dark background
  5. set background=dark
  6. if empty(glob('~/.vim/autoload/plug.vim'))
  7. silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
  8. \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  9. autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
  10. endif
  11. call plug#begin('~/.vim/plugged')
  12. " (Optinal) for Tag Sidebar
  13. " Plug 'majutsushi/tagbar'
  14. Plug 'hashivim/vim-terraform'
  15. "Plug 'vim-syntastic/syntastic'
  16. "Plug 'juliosueiras/vim-terraform-completion'
  17. Plug 'hashivim/vim-terraform'
  18. call plug#end()
  19. " Syntastic Config
  20. set statusline+=%#warningmsg#
  21. set statusline+=%{SyntasticStatuslineFlag()}
  22. set statusline+=%*
  23. let g:syntastic_always_populate_loc_list = 1
  24. let g:syntastic_auto_loc_list = 1
  25. let g:syntastic_check_on_open = 1
  26. let g:syntastic_check_on_wq = 0
  27. " (Optional)Remove Info(Preview) window
  28. set completeopt-=preview
  29. " (Optional)Hide Info(Preview) window after completions
  30. autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
  31. autocmd InsertLeave * if pumvisible() == 0|pclose|endif
  32. " (Optional) Enable terraform plan to be include in filter
  33. let g:syntastic_terraform_tffilter_plan = 1
  34. " (Optional) Default: 0, enable(1)/disable(0) plugin's keymapping
  35. let g:terraform_completion_keys = 1
  36. " (Optional) Default: 1, enable(1)/disable(0) terraform module registry completion
  37. let g:terraform_registry_module_completion = 0
  38. " let g:pymode_python = 'python3'
  39. " set the runtime path to include Vundle and initialize
  40. "set rtp+=~/.vim/bundle/Vundle.vim
  41. "call vundle#begin()
  42. " alternatively, pass a path where Vundle should install plugins
  43. "call vundle#begin('~/some/path/here')
  44. " let Vundle manage Vundle, required
  45. "Plugin 'gmarik/Vundle.vim'
  46. " The following are examples of different formats supported.
  47. " Keep Plugin commands between vundle#begin/end.
  48. " plugin on GitHub repo
  49. "Plugin 'tpope/vim-fugitive'
  50. " plugin from http://vim-scripts.org/vim/scripts.html
  51. "Plugin 'L9'
  52. " Git plugin not hosted on GitHub
  53. "Plugin 'git://git.wincent.com/command-t.git'
  54. " git repos on your local machine (i.e. when working on your own plugin)
  55. "Plugin 'file:///home/gmarik/path/to/plugin'
  56. " The sparkup vim script is in a subdirectory of this repo called vim.
  57. " Pass the path to set the runtimepath properly.
  58. "Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
  59. " Avoid a name conflict with L9
  60. "n 'fatih/vim-go'Plugin 'user/L9', {'name': 'newL9'}
  61. " Go Plugin:
  62. "Plugin 'fatih/vim-go'
  63. " All of your Plugins must be added before the following line
  64. "call vundle#end() " required
  65. filetype plugin indent on " required
  66. " To ignore plugin indent changes, instead use:
  67. "filetype plugin on
  68. "
  69. " Brief help
  70. " :PluginList - lists configured plugins
  71. " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
  72. " :PluginSearch foo - searches for foo; append `!` to refresh local cache
  73. " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
  74. "
  75. " see :h vundle for more details or wiki for FAQ
  76. " Put your non-Plugin stuff after this line
  77. set tabstop=2
  78. set shiftwidth=2
  79. set expandtab