-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
73 lines (52 loc) · 1.21 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
"Stop acting like Vi
set nocompatible
"Searches in subdirectories
set path+=**
"Set line numbers
set number
"Display all matching files
set wildmenu
" :find - tab now finds partial match recursively
" :b - lets you autocomplete any open buffer
"Creates tags file
command! MakeTags !ctags -R .
" ^] - jump to tag under cursor
" g^] - ambigious tags
" ^t - jump back to tag stack
"Tweaks for browsing
let g:netrw_banner=0 "to disable banner
let g:netrw_browse_split=4 "open in prior window
let g:netrw_altv=1 "open splits to the right
let g:netrw_liststyle=3 "tree view
let g:netrw_list_hide=netrw_gitignore#Hide()
let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+'
"enable plugins
filetype plugin on
"Opens split right and bottom
set splitbelow splitright
"Maps keys to switch between sreens
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
"Highlight search results
set hlsearch
"Show matching brackets
set showmatch
"Enable RE
set magic
"Enable syntax highlight
syntax enable
"Set standard language
set encoding=utf8
"Smart indentation
set smarttab
"Set tab to 4 spaces
set shiftwidth=8
set tabstop=8
"Auto indent
set ai
"Smart indent
set si
"Wrap lines
set wrap