Advertisement
Guest User

vimrc

a guest
Apr 28th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.14 KB | None | 0 0
  1. " Enable syntax highlighting based on filetype... you probably want these
  2. syntax on
  3. filetype plugin indent on
  4.  
  5. " I can send you the theme file if you want, it's a pretty theme
  6. colorscheme jellybeans
  7.  
  8. " Install the Vundle plugin if you want this - it's a package manager for more vim plugins
  9. set rtp+=~/.vim/bundle/Vundle.vim
  10. call vundle#begin()
  11. Plugin 'VundleVim/Vundle.vim'
  12. Plugin 'scrooloose/nerdtree'
  13. call vundle#end()
  14.  
  15. set encoding=utf-8
  16. set nocompatible               " Use Vim defaults
  17. set hidden                     " Quick buffer switching
  18. set ruler                      " Show cursor position
  19. set laststatus=2               " Show statusline even when no window split
  20. set number                     " Line numbers
  21. set cursorline                 " Highlights cursor line
  22. set scrolloff=2                " Keep 2 scroll lines above/below cursor
  23. set fillchars=vert:\           " Remove ugly | in seperators
  24. set noerrorbells               " Disable annoying beeps
  25. set visualbell                 " Visual bell instead of beeping
  26. set expandtab                  " Tab -> Space
  27. set tabstop=4                  " Tabs count for 4 columns
  28. set softtabstop=4              " Tab == 4 spaces
  29. set shiftwidth=4               " 4 Columns with reindent options
  30. set autoindent                 " Ignore case
  31. set smartindent                " Except with capitals
  32. set nohlsearch                 " Doesn't highlight everything thats matched when you search
  33. set incsearch                  " Increment search
  34. set ignorecase                 " Case-insensitive search;
  35. set smartcase                  " Search becomes case sensitive if caps used
  36. set nobackup                   " Don't keep backups
  37. set noswapfile                 " Don't create a swap file
  38. set history=50                 " Keep 50 lines of command line history
  39. set shortmess+=I               " No startup message
  40. set nolazyredraw               " Turn off lazy redraw
  41. set mouse=a                    " Enable mouse
  42.  
  43. " Press ctrl + n for a file explorer on the side
  44. autocmd StdinReadPre * let s:std_in=1
  45. autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
  46. map <C-n> :NERDTreeToggle<CR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement