-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvimrc
77 lines (71 loc) · 1.47 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
" # Basic Options
set autoindent
set backspace=eol,indent,start
set backupskip=/tmp/*,/private/tmp/*"
set expandtab
set foldcolumn=0
set hidden
set hlsearch
set laststatus=2
set modeline
set modelines=2
set nocompatible
set nofoldenable
set nosmartindent
set nosmarttab
set nospell
set number
set pastetoggle=<F6>
set ruler
set scrolloff=3
set shiftwidth=4
set shortmess=a
set showmatch
set softtabstop=4
set splitbelow
set splitright
set tabstop=4
set viminfo+=%
set wildmenu
set wildmode=longest:full,list:full
set wrap
set incsearch
set cursorline
set nofixendofline
syntax enable
filetype plugin indent on
set background=dark
colorscheme solarized
set formatoptions-=t
au FileType python set textwidth=99
" # Shortcuts
" Remove all trailing whitespace with CTRL+G
nmap <C-g> :%s/\s\+$//g<CR>
" Pressing space after a search will clear all highlighting
nmap <SPACE> <SPACE>:noh<CR>
" # Syntastic Config
let g:syntastic_python_checkers = ['flake8']
let g:syntastic_always_populate_loc_list = 1
" Tagbar config
let g:tagbar_usearrows = 1
nnoremap <leader>l :TagbarToggle<CR>
let g:tagbar_type_yaml = {
\ 'ctagstype' : 'yaml',
\ 'kinds' : [
\ 'a:anchors',
\ 's:section',
\ 'e:entry'
\ ],
\ 'sro' : '.',
\ 'scope2kind': {
\ 'section': 's',
\ 'entry': 'e'
\ },
\ 'kind2scope': {
\ 's': 'section',
\ 'e': 'entry'
\ },
\ 'sort' : 0
\ }
" Use new regular expression engine for more efficient syntax highlighting.
set re=0