nvimrc updates

This commit is contained in:
Rob Watson 2022-01-27 17:24:09 +01:00
parent 94fc69987d
commit e98642c88e
2 changed files with 2 additions and 1 deletions

2
nvimrc
View File

@ -104,7 +104,7 @@ augroup vimrc
" https://github.com/fatih/vim-go/issues/1757#issuecomment-565130503
autocmd FileType qf if (getwininfo(win_getid())[0].loclist != 1) | wincmd J | endif
" Remove trailing whitespace pre-save:
autocmd FileType go,ruby,markdown,rust,python,markdown,lua autocmd BufWritePre <buffer> %s/\s\+$//e
autocmd FileType go,ruby,markdown,rust,python,markdown,lua autocmd BufWritePre <buffer> silent! %s/\s\+$//e
augroup end
" Don't remember the current directory for a given file:

View File

@ -2,3 +2,4 @@ iabbrev clog console.log("<c-r>=Eatchar('\s')<cr>
iabbrev cdeb console.debug("<c-r>=Eatchar('\s')<cr>
iabbrev cerr console.error("<c-r>=Eatchar('\s')<cr>
iabbrev cwar console.warn("<c-r>=Eatchar('\s')<cr>
iabbrev ()! () => {<cr><cr>}<esc>kcc<c-r>=Eatchar('\s')<cr>