medmond919

Interesting VIM #6

Mar 29th, 2018
2,731
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set nocompatible    " be iMproved, required
  2. set encoding=utf-8
  3. set cursorline      " Enable highlight current line
  4. set colorcolumn=120 " Color column 120
  5. set laststatus=2    " Always show status bar
  6. set noshowcmd       " Hide typed command at statusbar
  7. set noswapfile      " Disable swp file
  8. set relativenumber  " Show relative line numbers
  9.  
  10. filetype off        " required
  11.  
  12. " set the runtime path to include Vundle and initialize
  13. set rtp+=~/.vim/bundle/Vundle.vim
  14. call vundle#begin()
  15. " alternatively, pass a path where Vundle should install plugins
  16. "call vundle#begin('~/some/path/here')
  17.  
  18. " let Vundle manage Vundle, required
  19. Plugin 'VundleVim/Vundle.vim'
  20.  
  21. "Numbers
  22. Plugin 'myusuf3/numbers.vim'
  23.  
  24. " Syntastic
  25. Plugin 'vim-syntastic/syntastic'
  26.  
  27. " GO Lang Support
  28. Plugin 'fatih/vim-go'
  29.  
  30. " Nerdtree view files
  31. Plugin 'scrooloose/nerdtree'
  32.  
  33. Plugin 'tpope/vim-fugitive'
  34.  
  35. Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
  36.  
  37. Plugin 'altercation/vim-colors-solarized'
  38.  
  39. " All of your Plugins must be added before the following line
  40. call vundle#end()            " required
  41. filetype plugin indent on    " required
  42.  
  43.  
  44. " Brief help
  45. " :PluginList       - lists configured plugins
  46. " :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
  47. " :PluginSearch foo - searches for foo; append `!` to refresh local cache
  48. " :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
  49. "
  50. " see :h vundle for more details or wiki for FAQ
  51. " Put your non-Plugin stuff after this line
  52.  
  53. " Solarized config
  54. syntax enable
  55. set background=dark
  56. colorscheme solarized
  57.  
  58. if has('gui_running')
  59.     set background=light
  60. else
  61.     set background=dark
  62. endif
  63.  
  64. let g:solarized_termcolors=256
  65.  
  66. " Syntastic config
  67. set statusline+=%#warningmsg#
  68. set statusline+=%{SyntasticStatuslineFlag()}
  69. set statusline+=%*
  70.  
  71. let g:syntastic_always_populate_loc_list = 1
  72. let g:syntastic_auto_loc_list = 1
  73. let g:syntastic_check_on_open = 1
  74. let g:syntastic_check_on_wq = 0
  75.  
  76. " Powerline
  77. "set laststatus=2
  78. "set showtabline=2
  79. "set noshowmode
  80. set t_Co=256
  81. let g:Powerline_symbols = 'fancy'
  82.  
  83. " Tab navigation
  84. nmap <Leader>te :tabnew<CR>:edit<Space>
  85. nmap <Leader>to :tabnew<CR>
  86. nmap <Tab> gt
  87. nmap <S-Tab> gT
Advertisement