Autogroups n stuff

This commit is contained in:
Jef Roosens 2020-08-17 09:55:58 +02:00
parent 6f1cc2464a
commit 78bd62e834
6 changed files with 12 additions and 4 deletions

View file

@ -1,5 +1,5 @@
augroup langs
autocmd!
" Remove trailing whitespace
autocmd BufWritePre *.py,*.java :silent! %s/\s\+$//g
" autocmd BufWritePre *.py,*.java :silent! %s/\s\+$//g
augroup END

View file

@ -55,7 +55,7 @@ nnoremap <silent> <leader>mt :make! test<CR>
" Remap <Esc> in terminal
tnoremap <silent> <Esc> <C-\><C-n>
" Open terminal in horizontal split
nnoremap <silent> <leader>s :split<CR>:terminal<CR>
nnoremap <silent> <leader><CR> :split<CR>:terminal<CR>
" Keybinding for switching between light/dark colorschemes
function! ColorschemeToggle()

View file

@ -2,7 +2,8 @@
" Load the plugins
call plug#begin('~/.config/nvim/plugged')
" Create ctags file asynchonously
" Gutentags creates a ctags file asynchronously. This allows me to jump to
" definitions easily.
Plug 'ludovicchabant/vim-gutentags', { 'commit': '31c0ead' }
" Fuzzy file search