summaryrefslogtreecommitdiff
path: root/.vim
diff options
context:
space:
mode:
authorMike Crute <crutem@amazon.com>2019-04-18 09:04:26 -0700
committerMike Crute <crutem@amazon.com>2019-04-18 09:38:28 -0700
commit94ef5629ea975000fddcd8bad5f4d8eecb2aaefc (patch)
tree70510c33ac4b80301ee9070777090445af513ad7 /.vim
parentac6969e12bd476e6f09223373120ed2be09fa93e (diff)
downloaddotfiles-94ef5629ea975000fddcd8bad5f4d8eecb2aaefc.tar.bz2
dotfiles-94ef5629ea975000fddcd8bad5f4d8eecb2aaefc.tar.xz
dotfiles-94ef5629ea975000fddcd8bad5f4d8eecb2aaefc.zip
Tune golang settings
Diffstat (limited to '.vim')
-rw-r--r--.vim/vimrc16
1 files changed, 15 insertions, 1 deletions
diff --git a/.vim/vimrc b/.vim/vimrc
index 4499845..e3ff978 100644
--- a/.vim/vimrc
+++ b/.vim/vimrc
@@ -64,14 +64,19 @@ set viminfo='100,<50,s10,h,n$HOME/.cache/viminfo
64set switchbuf=useopen 64set switchbuf=useopen
65set tabpagemax=50 65set tabpagemax=50
66set vb t_vb= 66set vb t_vb=
67
67" Defaults to ignore case on MacOS (vim 8+) 68" Defaults to ignore case on MacOS (vim 8+)
68if exists("&fileignorecase") 69if exists("&fileignorecase")
69 set nofileignorecase 70 set nofileignorecase
70end 71end
72
71if v:version > 703 || v:version == 703 && has("patch541") 73if v:version > 703 || v:version == 703 && has("patch541")
72 set formatoptions+=j " Delete comment character when joining commented lines 74 set formatoptions+=j " Delete comment character when joining commented lines
73endif 75endif
74"let mapleader="," 76"let mapleader=","
77
78" Really large Go files in Kubernetes exceed the maximum pattern memory space
79set maxmempattern=10000
75" }}} 80" }}}
76" Search Settings {{{ 81" Search Settings {{{
77set hlsearch 82set hlsearch
@@ -115,6 +120,16 @@ let g:explDetailedHelp=0
115if executable("/usr/local/bin/ctags") 120if executable("/usr/local/bin/ctags")
116 let g:Tlist_Ctags_Cmd="/usr/local/bin/ctags" 121 let g:Tlist_Ctags_Cmd="/usr/local/bin/ctags"
117endif 122endif
123
124" Allow other languages in fenced Markdown blocks
125let g:markdown_fenced_languages = ['python=python', 'c++=cpp', 'viml=vim', 'bash=sh', 'ini=dosini']
126
127" This is really slow on large code-bases
128" let g:go_fmt_command = "goimports"
129
130" Use vim ctags mappings instead of GoDef mappings because guru is really
131" really slow, especially on huge code-bases like Kubernetes
132let g:go_def_mapping_enabled = 0
118" }}} 133" }}}
119" Custom Commands {{{ 134" Custom Commands {{{
120" Cleanup windows crap from line endings 135" Cleanup windows crap from line endings
@@ -200,5 +215,4 @@ if &grepprg ==# 'grep -n $* /dev/null'
200 set grepprg=grep\ -rnH\ --exclude='.*.swp'\ --exclude='*~'\ --exclude='*.log'\ --exclude=tags\ $*\ /dev/null 215 set grepprg=grep\ -rnH\ --exclude='.*.swp'\ --exclude='*~'\ --exclude='*.log'\ --exclude=tags\ $*\ /dev/null
201endif 216endif
202" }}} 217" }}}
203let g:markdown_fenced_languages = ['python=python', 'c++=cpp', 'viml=vim', 'bash=sh', 'ini=dosini']
204" vim:foldenable:foldmethod=marker: 218" vim:foldenable:foldmethod=marker: