Advertisement
libdo

Untitled

Nov 3rd, 2017
6,468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. " run pathogen
  2. execute pathogen#infect()
  3.  
  4. " Specify a directory for plugins (for Neovim: ~/.local/share/nvim/plugged)
  5. call plug#begin('~/.vim/plugged')
  6.  
  7. " Specifiy vim-plug plugins
  8. Plug '/usr/local/opt/fzf' | Plug 'junegunn/fzf.vim'
  9.  
  10. " wut?
  11. set nocompatible " be iMproved, required
  12. filetype off " required
  13.  
  14. " configure gutter
  15. set number
  16. :set numberwidth=3
  17. :highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
  18.  
  19. " configure syntax highlighting
  20. filetype plugin indent on
  21. syntax on
  22. "colorscheme distinguished
  23.  
  24. " Folding Settings
  25. set foldmethod=indent "fold based on indent
  26. set foldnestmax=10 "deepest fold is 10 levels
  27. set nofoldenable "dont fold by default
  28. set foldlevel=2 "this is just what i use
  29.  
  30. " Set tab size
  31. set expandtab
  32. set shiftwidth=4
  33. set softtabstop=4
  34.  
  35. " map to system clipboard
  36. set clipboard=unnamed
  37.  
  38. " open NERDTree by default
  39. autocmd vimenter * NERDTree
  40. let NERDTreeShowHidden=1
  41.  
  42. " map NERDTree commands
  43. map <C-c> :NERDTreeToggle<CR>
  44.  
  45. " close NERDTree if last window
  46. autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement