-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
75 lines (51 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
syntax on
set nocompatible
set number
set autoindent
set showcmd " Shows the command I'm executing
set relativenumber
set autoread " Auto reads a file if it was changed from the outside
set showmatch " Shows matching brackets when cursor is hovering
set cursorline
set ruler
set encoding=utf-8
set expandtab " Use spaces instead of tabs
" -----------------------------------
" File Search
set path+=**
set wildmenu
set wildignore+=bin\*,.git\*,*.o,*.pyc,*~,*.class,*.hi,*.ho
" ------------------------------------
" Netrw (File Browser) Tweaks
let g:netrw_banner=0 " Disable banner
let g:netrw_altv=1 " Open splits to the right
let g:netrw_liststyle=3 " Tree view
" -----------------------------------
" Text Search
set hlsearch
set incsearch
" ------------------------------------
" Removing clutter
set nobackup
set directory=~/.vim/tmp
if !isdirectory(&directory)
call mkdir(&directory, "p")
endif
"--------------------------------------
" Vundle Plugin Manager
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
" Plugins go here
Plugin 'fatih/vim-go'
call vundle#end()
" End of Vundle Plugin Manager
"--------------------------------------
filetype on
filetype indent on
filetype plugin on
filetype plugin indent on
" -------------------------------------
" Go stuff
let g:go_def_mode='gopls'
let g:go_info_mode='gopls'