-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
51 lines (42 loc) · 1.66 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
set nocompatible
filetype off
" We have to turn this stuff back on if we want all of our features.
filetype plugin indent on " Filetype auto-detection
syntax on " Syntax highlighting
set bg=dark " I like dark backgrounds
set ttyfast " Indicate fast terminal conn for faster redraw
set laststatus=1 " Show status line iff 2+ windows
set modeline " Allow file-embedded modelines
set hlsearch " Highlight search terms
set showcmd " Show last command
set completeopt=menuone " Show insertion menu for completions
set tabstop=4 " Tab width
set shiftwidth=4 " How much to shift text
set expandtab " Tabs are converted to spaces
set ai " Auto-indent
syn on " Syntax highlighting
set textwidth=78 " Default text width
set backspace=indent,eol,start " Makes backspace key more powerful
set autowrite " Automatically save before :next, :make etc.
" markdown
au BufRead,BufNewFile *.md set filetype=markdown
" go
au FileType go setl tabstop=4
au FileType go setl shiftwidth=4
au FileType go setl textwidth=1000
au FileType go setl number
au FileType go setl nolist
" yaml
au FileType yaml setl indentkeys-=<:>
au FileType yaml setl tabstop=2
au FileType yaml setl shiftwidth=2
au FileType yaml setl expandtab
au FileType yaml setl number
" Bindings for easy split nav
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
" New files should open in insert mode
au BufNewFile * startinsert
colorscheme desert