-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
94 lines (84 loc) · 1.84 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
syntax enable
syntax on
filetype plugin indent on
call pathogen#infect()
call pathogen#helptags()
set nocompatible
set modelines=0
set tabstop=4
set shiftwidth=4
set encoding=utf-8
set autoindent
set showmode
set showcmd
set relativenumber
set backspace=indent,eol,start
set hidden
set visualbell
set cursorline
set ttyfast
let mapleader = " "
nnoremap / /\v
vnoremap / /\v
set ignorecase
set smartcase
nnoremap <tab> %
vnoremap <tab> %:
set ruler
set laststatus=2
set undofile
set softtabstop=4
set expandtab
nnoremap j gj
nnoremap k gk
au FocusLost * :wa
inoremap jj <ESC>
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
let g:rainbow_active = 1
imap <C-h> <esc>i
imap <C-j> <down>
imap <C-k> <up>
imap <C-l> <right>
" map CTRL-E to end-of-line (insert mode)
imap <C-e> <esc>$i<right>
" map CTRL-A to beginning-of-line (insert mode)
imap <C-a> <esc>0i
command! E :Explore
let g:netrw_liststyle=3
" Show invisible character
" set list
" set listchars=tab:▸\ ,eol:¬
"
set backupdir=~/.vim/backup
set noswapfile
let g:ctrlp_map = '<Leader>t'
let g:ctrlp_cmd = 'CtrlP'
" EasyMap
let g:EasyMotion_do_mapping = 0 " Disable default mappings
nmap <Leader>b :CtrlPBuffer<Enter>
nmap s <Plug>(easymotion-s)
vmap s <Plug>(easymotion-s)
map sj <Plug>(easymotion-j)
vmap sj <Plug>(easymotion-j)
map sk <Plug>(easymotion-k)
vmap sk <Plug>(easymotion-k)
nmap <Leader>o o<ESC>
nmap <Leader>O O<ESC>
let g:UltiSnipsExpandTrigger="<c-j>"
map <Leader>e <plug>NERDTreeTabsToggle<CR>
set t_Co=256
" Removes trailing spaces
function! TrimWhiteSpace()
%s/\s\+$//e
endfunction
let g:syntastic_javascript_checkers = ['eslint', 'jshint', 'jscs']
let g:ctrlp_user_command = 'ag %s -i --nocolor --nogroup --hidden
\ --ignore .git
\ --ignore .svn
\ --ignore .hg
\ --ignore .DS_Store
\ --ignore "**/*.pyc"
\ -g ""'