-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
82 lines (57 loc) · 1.19 KB
/
Copy path.vimrc
File metadata and controls
82 lines (57 loc) · 1.19 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
"vundle setup
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'fatih/vim-go'
call vundle#end()
filetype plugin indent on
" go linter
set rtp+=$GOPATH/src/github.com/golang/lint/misc/vim
set history=500
set number
set nowrap
filetype plugin on
filetype indent on
set autoread
command W w !sudo tee % > /dev/null
set cmdheight=2
set backspace=eol,start,indent
set whichwrap+=<,>,h,l
set ignorecase
set smartcase
set hlsearch
set lazyredraw
set noerrorbells
set novisualbell
set t_vb=
set tm=500
syntax enable
try
colorscheme desert
catch
endtry
set encoding=utf8
set ffs=unix,dos,mac
set expandtab
set smarttab
set shiftwidth=2
set tabstop=2
set ai
set si
set wrap
set laststatus=2
set statusline=\ %{HasPaste()}%F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l
" Returns true if paste mode is enabled
function! HasPaste()
if &paste
return 'PASTE MODE '
endif
return ''
endfunction
" Automatically run go linter
autocmd BufWritePost,FileWritePost *.go execute 'Lint' | cwindow
"leave powerline out for now
"set rtp+=$HOME/.local/lib/python2.7/site-packages/powerline/bindings/vim
"set t_Co=256