-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
119 lines (85 loc) · 2.17 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
" Pathogen
execute pathogen#infect()
" Syntastic settings
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
" Set leader
let mapleader=","
" Map :w to ,w
noremap <Leader>w :w
" Clean paste
set paste
" Doesn't require you to save buffers before switching between them.
set hidden
" Display extra whitespace
set list listchars=tab:»·,trail:·,nbsp:·
" Quicker window movement
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-h> <C-w>h
nnoremap <C-l> <C-w>l
" Quicker window resizing
map + <C-W>+
map _ <C-W>-
" Show line numbers
set nu
" Sets how many lines of history VIM has to remember
set history=700
" Enable filetype plugins
filetype plugin on
filetype indent on
" Turn on the wild menu
set wildmenu
" Always show current position
set ruler
" Highlight the current line
set cursorline
" New split windows open to the right and bottom
set splitbelow
set splitright
" No swap files are generated
set noswapfile
" Height of the command bar
set cmdheight=2
" Configure backspace so it acts as it should act
set backspace=eol,start,indent
set whichwrap+=<,>,h,l
" Ignore case when searching
set ignorecase
" When searching try to be smart about case
set smartcase
" Highlight search results
set hlsearch
" Makes search act like search in modern browsers
set incsearch
" Show matching brackets when text indicator is over them
set showmatch
" How many tenths of a second to blink when matching brackets
set mat=2
" Enable syntax highlighting
syntax enable
" Dark version of base16-mocha scheme
set background=dark
colorscheme base16-mocha
" Use spaces instead of tabs
set expandtab
" Be smart when using tabs ;)
set smarttab
" 1 tab == 4 spaces
set shiftwidth =4
set tabstop=4
set ai "Auto indent
set si "Smart indent
set wrap "Wrap lines
set scrolloff=3 "Keep 3 lines above and below of the cursor
set guioptions-=m "Remove menu bar
set guioptions-=T "Remove tool bar
set guioptions-=r "Remove right-hand scroll bar
set guioptions-=L "Remove left-hand scroll bar
set lines=999
set columns=999