forked from DevonMorris/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
65 lines (53 loc) · 1.34 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
" Turn of compatibility with legacy vi
set nocompatible
" Always display the status line, even if only one window is displayed
set laststatus=2
set encoding=utf-8
filetype off
set number
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'scrooloose/nerdcommenter'
call vundle#end()
set completeopt-=preview
set lazyredraw
filetype plugin indent on
filetype plugin on
syntax on
set tabstop=4
set shiftwidth=4
set expandtab
set t_Co=256
" colorscheme molokai
set background=dark
let mapleader = "\\"
nmap <space> <leader>
vmap <space> <leader>
set backspace=indent,eol,start
" Escape Mappings for insert and visual modes
inoremap jk <esc>
vnoremap jk <esc>
" Mappings to edit .vimrc and source/save .vimrc
nnoremap <leader>ev :vsplit $MYVIMRC<cr>
nnoremap <leader>sv :source $MYVIMRC<cr>
" Mappings to move between panes
nnoremap <leader>l <C-W><C-L>
nnoremap <leader>h <C-W><C-H>
nnoremap <leader>j <C-W><C-J>
nnoremap <leader>k <C-W><C-K>
" Mapping for jumping
nnoremap <S-Tab> <C-O>
" Mappings to go to the end of line and beginning of line
nnoremap L $
vnoremap L $
nnoremap H 0
vnoremap H 0
" Mappings to move up and down faster
nnoremap J 10j
vnoremap J 10j
nnoremap K 10k
vnoremap K 10k