Autogroups n stuff

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

5
.netrwhist 100644
View File

@ -0,0 +1,5 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhistcnt =3
let g:netrw_dirhist_3='/home/jjr/work/suzybot'
let g:netrw_dirhist_2='/home/jjr/work/suzybot/suzybot'
let g:netrw_dirhist_1='/home/jjr/work/suzybot'

View File

@ -16,4 +16,4 @@ When I started to config my Neovim, I had a few goals in mind:
## Design
I like to split my configs up into multiple files, as you can see in this repository. It makes it easier for me to
navigate, and it makes it so I don't just a have a file that's a thousand lines long.
navigate, and it makes it so I don't just have a file that's a thousand lines long.

2
ftplugin/vim.vim 100644
View File

@ -0,0 +1,2 @@
" Show width column
setlocal colorcolumn=120

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