-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
55 lines (44 loc) · 1.87 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
set exrc " looks for project specific .vimrc in local dir
set secure " looks out for security issues with local .vimrc
set nocompatible " use vim defaults
set scrolloff=3 " keep 3 lines when scrolling
set ai " set auto-indenting on for programming
set showcmd " display incomplete commands
set nobackup " do not keep a backup file
set number " show line numbers
set ruler " show the current row and column
set hlsearch " highlight searches
set incsearch " do incremental searching
set showmatch " jump to matches when entering regexp
set ignorecase " ignore case when searching
set smartcase " no ignorecase if Uppercase char present
set smarttab " Improves tabbing
set autoindent " autoindenting
set visualbell t_vb= " turn off error beep/flash
set novisualbell " turn off visual bell
syntax on " turn syntax highlighting on by default
filetype on " detect type of file
filetype indent on " load indent file for specific file type
" set UTF-8 encoding
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
" should allow movement in long lines easier
" and predictable
nnoremap <buffer> k gk
nnoremap <buffer> j gj
set ts=8 sw=4 sts=4 tw=75 expandtab
"don't like braces highlighting
let g:loaded_matchparen= 0
"plugins in .vim/bundle/
"git clone https://github.com/junegunn/goyo.vim
"git clone https://github.com/plasticboy/vim-markdown
"git clone https://github.com/vim-pandoc/vim-pandoc-syntax
set runtimepath+=~/.vim/bundle/goyo.vim
"set runtimepath+=~/.vim/bundle/vim-pandoc-syntax
augroup pandoc_syntax
au! BufNewFile,BufFilePre,BufRead *.md set filetype=markdown.pandoc
augroup END
"https://github.com/junegunn/goyo.vim/issues/49
"let g:goyo_margin_top = 0
"let g:goyo_margin_bottom = 0