From 32fdf873ea75e7fedd813a9e506bc6412c7fbf1c Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 11 Sep 2020 20:50:37 +0100 Subject: removed duplicate settings and installed vim-go --- vim/pack/fatih/start/vim-go | 1 + vim/vimrc | 32 ++++++++++++++++++-------------- 2 files changed, 19 insertions(+), 14 deletions(-) create mode 160000 vim/pack/fatih/start/vim-go (limited to 'vim') diff --git a/vim/pack/fatih/start/vim-go b/vim/pack/fatih/start/vim-go new file mode 160000 index 0000000..9b9b527 --- /dev/null +++ b/vim/pack/fatih/start/vim-go @@ -0,0 +1 @@ +Subproject commit 9b9b527d61a6fe10a6d0c618cc0dd113b6aa7690 diff --git a/vim/vimrc b/vim/vimrc index 63c2665..5f59d56 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -3,14 +3,20 @@ " We want to load this first - everything else I include overrides it runtime! plugin/sensible.vim +" try to speed vim on openbsd +" https://www.reddit.com/r/openbsd/comments/9t3t4q/vim_81_slow_on_openbsd/ +let sh_minlines=100 +let sh_maxlines=600 +set synmaxcol=300 + set nocompatible -set backspace=indent,eol,start set cmdheight=1 +set re=1 "" Fuck - this does speed up vim a bit https://stackoverflow.com/questions/19030290/syntax-highlighting-causes-terrible-lag-in-vim set foldmethod=manual set encoding=utf-8 set modelines=0 -set relativenumber +" set relativenumber ! might slow down vim set autoindent set showmode set nocursorline @@ -23,12 +29,10 @@ set laststatus=2 set history=1000 " remember more commands and search history set undolevels=1000 " use many muchos levels of undo set wildignore=*.swp,*.bak,*.pyc,*.class -set title " change the terminal's title set visualbell " don't beep set noerrorbells " don't beep set number set fillchars=diff:⣿,vert:\| -set noswapfile set ruler " show the cursor position all the time set showcmd " display incomplete commands set vb @@ -37,21 +41,13 @@ set listchars=tab:▸\ ,eol:¬,extends:❯,precedes:❮ set lazyredraw set matchtime=3 set showbreak=↪ -set visualbell -set noerrorbells set splitbelow set splitright set autowrite set linebreak set fileencodings=utf-8 -set ttyfast -"set t_Co=256 set background=dark set path+=** -set relativenumber -set incsearch -set hlsearch -set noswapfile " Searching and movement ... nnoremap / /\v @@ -74,7 +70,6 @@ nnoremap / :execute 'vimgrep /'.@/.'/g %':copen "backups/swap set noswapfile -set directory^=~/.vim/swap// set nobackup " persist the undo tree for each file @@ -130,7 +125,16 @@ set omnifunc=syntaxcomplete#Complete " and on p287 of Practical Vim set complete-=i -"vim-go +" Go stuff + +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 + +let g:go_auto_type_info = 1 + let test#go#runner = 'gotest' let g:go_term_mode = "split" -- cgit v1.2.3