nvimrc updates
This commit is contained in:
parent
94fc69987d
commit
e98642c88e
2
nvimrc
2
nvimrc
|
@ -104,7 +104,7 @@ augroup vimrc
|
||||||
" https://github.com/fatih/vim-go/issues/1757#issuecomment-565130503
|
" https://github.com/fatih/vim-go/issues/1757#issuecomment-565130503
|
||||||
autocmd FileType qf if (getwininfo(win_getid())[0].loclist != 1) | wincmd J | endif
|
autocmd FileType qf if (getwininfo(win_getid())[0].loclist != 1) | wincmd J | endif
|
||||||
" Remove trailing whitespace pre-save:
|
" 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
|
augroup end
|
||||||
|
|
||||||
" Don't remember the current directory for a given file:
|
" Don't remember the current directory for a given file:
|
||||||
|
|
|
@ -2,3 +2,4 @@ iabbrev clog console.log("<c-r>=Eatchar('\s')<cr>
|
||||||
iabbrev cdeb console.debug("<c-r>=Eatchar('\s')<cr>
|
iabbrev cdeb console.debug("<c-r>=Eatchar('\s')<cr>
|
||||||
iabbrev cerr console.error("<c-r>=Eatchar('\s')<cr>
|
iabbrev cerr console.error("<c-r>=Eatchar('\s')<cr>
|
||||||
iabbrev cwar console.warn("<c-r>=Eatchar('\s')<cr>
|
iabbrev cwar console.warn("<c-r>=Eatchar('\s')<cr>
|
||||||
|
iabbrev ()! () => {<cr><cr>}<esc>kcc<c-r>=Eatchar('\s')<cr>
|
||||||
|
|
Loading…
Reference in New Issue