summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.gitmodules3
m---------vim/pack/fatih/start/vim-go0
-rw-r--r--vim/vimrc32
3 files changed, 21 insertions, 14 deletions
diff --git a/.gitmodules b/.gitmodules
index 1c4d6d0..dc2602c 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -25,3 +25,6 @@
[submodule "vim/pack/tpope/start/vim-surround"]
path = vim/pack/tpope/start/vim-surround
url = https://github.com/tpope/vim-surround.git
+[submodule "vim/pack/fatih/start/vim-go"]
+ path = vim/pack/fatih/start/vim-go
+ url = https://github.com/fatih/vim-go.git
diff --git a/vim/pack/fatih/start/vim-go b/vim/pack/fatih/start/vim-go
new file mode 160000
+Subproject 9b9b527d61a6fe10a6d0c618cc0dd113b6aa769
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 <silent> <leader>/ :execute 'vimgrep /'.@/.'/g %'<CR>:copen<CR>
"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"