forked from ftf/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc.after.symlink
87 lines (66 loc) · 1.98 KB
/
vimrc.after.symlink
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
" Forget compatibility with Vi. Who cares.
set nocompatible
" Set encoding
set encoding=utf-8
" searching
set hlsearch
set incsearch
set ignorecase
set smartcase
"Enable file types
filetype on
filetype plugin on
filetype indent on
syntax on
set ruler
set background=dark
colorscheme solarized
set showcmd
set laststatus=2
" indent settings
set smartindent
set autoindent
autocmd FileType python setlocal tabstop=8 expandtab shiftwidth=4 softtabstop=4
" open file in chrome
nmap <leader>cr :silent ! open -a 'Google Chrome.app' %:p<cr>
" Backups
set backupdir=~/.dotfiles/vimtmp/
set directory=~/.dotfiles/vimtmp/
set backup " enable backup
" show matching brackets
set showmatch
set matchtime=7
" easier hidden buffer usage
set hidden
" textmate like hidden symbols
set listchars=tab:▸\ ,eol:¬
nmap <leader>L :set list!<CR>
set list!
"nmap <leader>w :set wrap!<CR>
" NERDTree focus tree pane
call janus#add_mapping('nerdtree', 'map', '<leader>]', ':NERDTreeFocus<CR>')
call janus#add_mapping('nerdtree', 'map', '<F2>', ':NERDTreeToggle<CR>')
" Source .simplenoterc for simplenote creds, if present
if filereadable(expand("~/.simplenoterc"))
source ~/.simplenoterc
endif
" highlight trailing whitespace, like git diff
:highlight ExtraWhitespace ctermbg=red guibg=red
autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/
" syntastic opts
let g:syntastic_go_checkers=['go', 'gofmt', 'golint', 'govet']
let g:syntastic_python_checkers=['pylint']
let g:syntastic_perl_checkers=['perlcritic']
let g:syntastic_puppet_puppet_exe = 'LC_ALL=' . $LC_ALL . ' puppet'
let g:syntastic_puppet_puppetlint_exe='LC_ALL=' . $LC_ALL . ' puppet-lint'
let g:syntastic_ruby_checkers=['mri', 'ruby-lint', 'rubocop']
" default encryption should be blowfish
set cm=blowfish
" moar history
set history=1000
" vim-go opts
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
" syntastic go opts
"autocmd FileType go autocmd BufWritePre <buffer> Fmt