Advertisement
iax

.vimrc

iax
Nov 16th, 2021 (edited)
2,892
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.62 KB | None | 0 0
  1. " Install vim-plug if not found
  2. if empty(glob('~/.vim/autoload/plug.vim'))
  3.   silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
  4.     \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  5.   autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
  6. endif
  7.  
  8. " Run PlugInstall if there are missing plugins
  9. autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
  10.   \| PlugInstall --sync | source $MYVIMRC
  11. \| endif
  12.  
  13. call plug#begin('~/.vim/plugged')
  14. " Themes ----------------------------
  15. Plug 'tomasr/molokai'
  16. Plug 'itchyny/lightline.vim'
  17.  
  18. Plug 'nathanaelkane/vim-indent-guides'
  19. Plug 'airblade/vim-gitgutter'
  20. call plug#end()
  21.  
  22. set laststatus=2  " Required by LightLine
  23. set noshowmode    " Remove duplicated -- INSERT -- text
  24.  
  25. set t_Co=256
  26. syntax on
  27. colo molokai
  28.  
  29. set encoding=UTF-8
  30.  
  31. set number        " Always show line numbers
  32.  
  33. set expandtab     " TAB Use spaces instead of tabs
  34. set tabstop=2     " TAB number of space char that will be inserted when tab is pressed
  35. set shiftwidth=2  " TAB how many columns text is indented with the reindent operations (<<,>>)
  36.  
  37. set ignorecase    " ignore case when searching
  38. set hlsearch      " Highlight things that we find with the search
  39. set incsearch     " Focus on the search result as I type
  40.  
  41. set showmatch     " set show matching parenthesis
  42. set mat=2         " How many tenths of a second to blink when matching brackets
  43.  
  44. set nobackup
  45. set noswapfile
  46.  
  47. " Show > :set list
  48. set listchars=eol:¶,tab:»-,trail:·,extends:>,precedes:<,space:
  49.  
  50. " For when you forget to sudo.. Really Write the file.
  51. cmap w!! w !sudo tee % >/dev/null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement