-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
executable file
·58 lines (44 loc) · 1.2 KB
/
vimrc
File metadata and controls
executable file
·58 lines (44 loc) · 1.2 KB
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
syntax on
" Tabs
set tabstop=8
set softtabstop=4
set expandtab
" Indents
set cindent
set autoindent
set shiftwidth=4
filetype indent plugin on
" Only two tabs for R
autocmd Filetype r setlocal tabstop=2 shiftwidth=2 softtabstop=2
" Remove dreaded wrap
set nowrap
" New window placement
set splitbelow
set splitright
" Highlight search term while search
set incsearch
" Autocomplete with tab in insertmode
imap <Tab> <C-n>
" Allow pasting from clipboard
set clipboard=unnamedplus
" Ruler line at 80 chars
set cc=80
highlight ColorColumn ctermbg=233
" Highlight trailing whitespace
highlight ExtraWhitespace ctermbg=9
match ExtraWhitespace /\s\+$/
" Add html syntax higlighting to .tag
" Add markdown syntax highlighting to .md
au BufNewFile,BufRead *.tag set filetype=html
au BufNewFile,BufReadPost *.md set filetype=markdown
" Add syntax highlighting for code in markdown
let g:markdown_fenced_languages = ['html', 'python', 'bash=sh', 'r']
" Go syntax highlighting
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_highlight_interfaces = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
" Pathogen plugins
execute pathogen#infect()