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