From 78bd62e834ebba346e9df961bff0260cfe1088b4 Mon Sep 17 00:00:00 2001 From: chewingbever Date: Mon, 17 Aug 2020 09:55:58 +0200 Subject: [PATCH] Autogroups n stuff --- .netrwhist | 5 +++++ README.md | 2 +- ftplugin/vim.vim | 2 ++ init/autogroups.vim | 2 +- init/keys.vim | 2 +- init/plugins.vim | 3 ++- 6 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 .netrwhist create mode 100644 ftplugin/vim.vim diff --git a/.netrwhist b/.netrwhist new file mode 100644 index 0000000..da647df --- /dev/null +++ b/.netrwhist @@ -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' diff --git a/README.md b/README.md index fdd45ae..f67255b 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/ftplugin/vim.vim b/ftplugin/vim.vim new file mode 100644 index 0000000..3ade533 --- /dev/null +++ b/ftplugin/vim.vim @@ -0,0 +1,2 @@ +" Show width column +setlocal colorcolumn=120 diff --git a/init/autogroups.vim b/init/autogroups.vim index 9bd617c..45a2a6d 100644 --- a/init/autogroups.vim +++ b/init/autogroups.vim @@ -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 diff --git a/init/keys.vim b/init/keys.vim index 1685990..e2890be 100644 --- a/init/keys.vim +++ b/init/keys.vim @@ -55,7 +55,7 @@ nnoremap mt :make! test " Remap in terminal tnoremap " Open terminal in horizontal split -nnoremap s :split:terminal +nnoremap :split:terminal " Keybinding for switching between light/dark colorschemes function! ColorschemeToggle() diff --git a/init/plugins.vim b/init/plugins.vim index c82b2aa..72ec0c3 100644 --- a/init/plugins.vim +++ b/init/plugins.vim @@ -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