dotfiles/home/.vimrc

54 lines
1.2 KiB
VimL
Raw Normal View History

" Syntax highlighting based on detected language
syntax on
2016-06-14 18:33:44 +00:00
" Default GUI Window Geometry
if has("gui_running")
2020-10-05 22:02:00 +00:00
" Preferred window size
set lines=29 columns=105
endif
2020-10-05 22:02:00 +00:00
" Show tabs at the top of the editor
set showtabline=2
" Turn on Line numbering
set number
2020-10-05 21:40:52 +00:00
" Highlight all strings that match search
set hlsearch
" Turn on Mouse Aware mode, does lots of stuff
" What we're most interested in is the fact that
" it won't let us highlight the line numbers
set mouse+=a
" Yank and Paste using the system clipboard
set clipboard=unnamedplus
" Convert tabs to spaces
" Tabs are 4 spaces wide
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
2019-05-01 17:58:53 +00:00
2021-01-11 18:23:10 +00:00
" Golang Specific stuff
" Go syntax highlighting
let g:go_highlight_fields = 1
let g:go_highlight_functions = 1
let g:go_highlight_function_calls = 1
let g:go_highlight_extra_types = 1
let g:go_highlight_operators = 1
" Auto formatting and importing
let g:go_fmt_autosave = 1
let g:go_fmt_command = "goimports"
" Status line types/signatures
let g:go_auto_type_info = 1
2021-03-31 17:53:58 +00:00
" Highlight whitespace at the end of the line
let g:better_whitespace_enabled=1
let g:better_whitespace_ctermcolor='red'
2022-08-17 22:11:20 +00:00
colorscheme nord
2022-08-17 21:51:04 +00:00
2016-06-14 18:33:44 +00:00
execute pathogen#infect()
filetype plugin indent on