Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " +-----------------+
- " | MY CUSTOM VIMRC |
- " +-----------------+
- set nocompatible " be iMproved
- " PLUGIN MANAGER
- " ==============
- filetype off " required for Vundle
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#begin()
- Plugin 'VundleVim/Vundle.vim'
- " > ADD YOUR PLUGINS HERE <
- Plugin 'scrooloose/nerdtree' " Visual file browser
- Plugin 'morhetz/gruvbox' " Guru Theme
- Plugin 'flazz/vim-colorschemes' " other themes
- " > --------------------- <
- call vundle#end() " required for Vundle
- filetype plugin indent on " required for Vundle
- " APPEARANCE
- " ==========
- colorscheme wombat
- syntax on
- set expandtab
- set tabstop=4
- set softtabstop=4
- set shiftwidth=4
- set autoindent
- set textwidth=80
- set nowrap
- set backspace=indent,eol,start
- set copyindent
- set number
- set relativenumber
- set showmatch
- set ignorecase
- set smartcase
- set smarttab
- set hlsearch
- set incsearch
- set nobackup
- set noswapfile
- set history=1000
- set undolevels=1000
- set title
- set visualbell
- set noerrorbells
- set scrolloff=10
- set autoread
- " FUNCTIONALITIES
- " ===============
- " \sc calls an English spelling checker
- func! SpellChecker()
- setlocal textwidth=80
- setlocal smartindent
- setlocal spell spelllang=en_us
- setlocal noexpandtab
- endfu
- com! SpellCheck call SpellChecker()
- nnoremap <leader>sc :SpellCheck<CR>
- nnoremap <leader><Esc> :nohlsearch<CR>
- " \ev to edit .vimrc
- nnoremap <leader>ev :e $MYVIMRC<CR>
- " \sv to edit .vimrc
- nnoremap <leader>sv :so $MYVIMRC<CR>
- " \q to save and quit
- nnoremap <leader>q :wqa!<CR>
- " F2 to enter Paste Mode
- set pastetoggle=<F2>
- " Easy window navigation
- nnoremap <C-h> <C-w>h
- nnoremap <C-j> <C-w>j
- nnoremap <C-k> <C-w>k
- nnoremap <C-l> <C-w>l
- nnoremap j gj
- nnoremap k gk
- " STARTUP
- " =======
- au VimEnter * NERDTree
- au VimEnter * wincmd l
Add Comment
Please, Sign In to add comment