-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
44 lines (36 loc) · 872 Bytes
/
.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
set nocompatible
filetype off
" ---------------------------------------------------------------
" Vundle
" --------------------------------------------------------------
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'ctrlp.vim'
Plugin 'tpope/vim-rails'
"Plugin 'tpope/vim-endwise'
"Plugin 'jiangmiao/auto-pairs'
call vundle#end()
filetype plugin indent off
syntax on
" set nocompatible " does not have to be vi compatible
set tabstop=2
" when indenting with '>', use 4 spaces width
set shiftwidth=2
set expandtab
map <c-t> :Tex<enter>
map <c-e> :Explore<enter>
" ino jj <esc>
" cno jj <c-c>
" vno v <esc>
" w navigation
nmap <C-J> <C-W><C-J>
nmap <C-K> <C-W><C-K>
nmap <C-H> <C-W><C-H>
nmap <C-L> <C-W><C-L>
map <C-u> gt
" nms buffer next command
nnoremap <C-n> :bnext<enter>
imap jk <Esc>
" basics
set number