diff options
author | Mike Crute <crutem@amazon.com> | 2019-04-18 09:04:26 -0700 |
---|---|---|
committer | Mike Crute <crutem@amazon.com> | 2019-04-18 09:38:28 -0700 |
commit | 94ef5629ea975000fddcd8bad5f4d8eecb2aaefc (patch) | |
tree | 70510c33ac4b80301ee9070777090445af513ad7 /.vim | |
parent | ac6969e12bd476e6f09223373120ed2be09fa93e (diff) | |
download | dotfiles-94ef5629ea975000fddcd8bad5f4d8eecb2aaefc.tar.bz2 dotfiles-94ef5629ea975000fddcd8bad5f4d8eecb2aaefc.tar.xz dotfiles-94ef5629ea975000fddcd8bad5f4d8eecb2aaefc.zip |
Tune golang settings
Diffstat (limited to '.vim')
-rw-r--r-- | .vim/vimrc | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -64,14 +64,19 @@ set viminfo='100,<50,s10,h,n$HOME/.cache/viminfo | |||
64 | set switchbuf=useopen | 64 | set switchbuf=useopen |
65 | set tabpagemax=50 | 65 | set tabpagemax=50 |
66 | set vb t_vb= | 66 | set vb t_vb= |
67 | |||
67 | " Defaults to ignore case on MacOS (vim 8+) | 68 | " Defaults to ignore case on MacOS (vim 8+) |
68 | if exists("&fileignorecase") | 69 | if exists("&fileignorecase") |
69 | set nofileignorecase | 70 | set nofileignorecase |
70 | end | 71 | end |
72 | |||
71 | if v:version > 703 || v:version == 703 && has("patch541") | 73 | if 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 |
73 | endif | 75 | endif |
74 | "let mapleader="," | 76 | "let mapleader="," |
77 | |||
78 | " Really large Go files in Kubernetes exceed the maximum pattern memory space | ||
79 | set maxmempattern=10000 | ||
75 | " }}} | 80 | " }}} |
76 | " Search Settings {{{ | 81 | " Search Settings {{{ |
77 | set hlsearch | 82 | set hlsearch |
@@ -115,6 +120,16 @@ let g:explDetailedHelp=0 | |||
115 | if executable("/usr/local/bin/ctags") | 120 | if 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" |
117 | endif | 122 | endif |
123 | |||
124 | " Allow other languages in fenced Markdown blocks | ||
125 | let 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 | ||
132 | let 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 |
201 | endif | 216 | endif |
202 | " }}} | 217 | " }}} |
203 | let g:markdown_fenced_languages = ['python=python', 'c++=cpp', 'viml=vim', 'bash=sh', 'ini=dosini'] | ||
204 | " vim:foldenable:foldmethod=marker: | 218 | " vim:foldenable:foldmethod=marker: |