785a46b1b198

More
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 05 Nov 2020 10:33:03 -0500
parents 18cc4d4f4ac4
children a025b0d30da4
branches/tags (none)
files vim/vimrc

Changes

--- a/vim/vimrc	Fri Sep 18 17:21:49 2020 -0400
+++ b/vim/vimrc	Thu Nov 05 10:33:03 2020 -0500
@@ -1500,10 +1500,9 @@
     au FileType go inoremap <c-n> <c-x><c-o>
 
     " this language is incredible
-    au FileType go iabbrev <buffer> ernil if err != nil {<cr>return nil, err<esc>jA
-    au FileType go iabbrev <buffer> erstr if err != nil {<cr>return "", err<esc>jA
-    au FileType go iabbrev <buffer> ererr if err != nil {<cr>return err<esc>jA
-    au FileType go iabbrev <buffer> erpan if err != nil {<cr>panic(err)<esc>jA
+    au FileType go iabbrev <buffer> enil if err != nil
+    au FileType go iabbrev <buffer> rete return err
+    au FileType go iabbrev <buffer> retne return nil, err
 
     au FileType gohtmltmpl setlocal shiftwidth=4
 augroup END
@@ -1805,7 +1804,7 @@
     au FileType pgsql nnoremap <buffer> <silent> <localleader>e :call NeoReplSendParagraph()<cr>
     au FileType pgsql nnoremap <buffer> <silent> <localleader>f :call NeoReplSendEntireFile()<cr>
     au FileType pgsql nnoremap <buffer> <silent> <localleader>c :call NeoReplSendRaw("")<cr>
-
+    au FileType pgsql nnoremap <buffer> <silent> <localleader>q :call NeoReplSendRaw("q")<cr>
 augroup END
 
 " }}}