-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
55 lines (47 loc) · 1.12 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
syntax on
colorscheme monokai
filetype plugin indent on
set ignorecase
set tabstop=4
set expandtab
set autoindent
set smartindent
set shiftwidth=4
set ruler
set number
set backspace=indent,eol,start
set visualbell
set encoding=utf-8
set number relativenumber
set splitright
set splitbelow
" Remap ESC to kj
inoremap kj <esc>
cnoremap kj <esc>
inoremap jk <esc>
cnoremap kj <esc>
"Split navigation without having to press Ctrl+w first
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" NERDTree
"au VimEnter * NERDTree
function! StartUp()
" If no file is specified when running Vim, automatically open NERDTree
if 0 == argc()
NERDTree
end
endfunction
autocmd VimEnter * call StartUp()
let NERDTreeIgnore = ['\.pyc$',
\'.*__pycache__.*',
\'.*egg-info',
\'venv',
\'^dist$',
\'^\.git$',
\'^\.cache$',
\'^\.hypothesis$',
\'^\.tox$',
\'^\.pytest_cache$']
let NERDTreeShowHidden=1