aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-04-01 14:11:40 +0100
committerMatthew Lemon <y@yulqen.org>2024-04-01 14:11:40 +0100
commit394227c36ba6d58bd6b9b541e550c2af9c04e552 (patch)
tree13ce7d91640887aee3b5a0068c2a2faefb813d5d
parent1faa05388185debfde1874818e2ae5739598ddef (diff)
Fix for go filetype
-rw-r--r--vim/vimrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index e0db18a..328c859 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -264,6 +264,8 @@ let test#vimterminal#term_position = "belowright"
" command! S :w !sudo tee %
"nnoremap <Tab> %
+nnoremap <C-@> :call system("wl-copy", @")<CR>
+xnoremap <silent> <C-@> :w !wl-copy<CR><CR>
" }}}
" FZF {{{
" This is the default extra key bindings
@@ -366,10 +368,10 @@ augroup END
" Golang {{{
augroup golang
autocmd!
- au BufReadPre,BufReadPost *.go
+ autocmd FileType go
\ set tabstop=8 |
\ set softtabstop=8 |
- \ set shiftwidth=8 |
+ \ set shiftwidth=8
augroup END
" }}}
" GitFZF {{{