aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-22 12:35:36 -0400
committeriamcheeseman <[email protected]>2026-05-22 12:35:36 -0400
commitf31a0a48a2408d38faaaae2d0fb91528e3c2c20e (patch)
treef4e38fe03f86ff9c50d9778be3fd8302ff06090b /.vimrc
parent32256bdd1abde72427ccd1dac185eee48f803ef1 (diff)
Update config
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc17
1 files changed, 12 insertions, 5 deletions
diff --git a/.vimrc b/.vimrc
index 9ffc8da..1dfa193 100644
--- a/.vimrc
+++ b/.vimrc
@@ -25,6 +25,7 @@ set hlsearch
set cinoptions+=:0,N-s,E-s,(s,m1,t0
set completeopt=menu,menuone,noselect
set autoread
+set spell
filetype plugin on
filetype indent on
@@ -36,12 +37,11 @@ let fuzzbox_mappings = 0
let g:apc_enable_ft = {'c':1}
let g:netrw_list_hide = '\~$'
-xmap ga <Plug>(EasyAlign)
-nmap ga <Plug>(EasyAlign)
-nmap <leader>f :FuzzyFilesRoot<cr>
-nmap <leader>t :! ctags -R .<cr><cr>
+nmap <silent> <leader>f :FuzzyFilesRoot<cr>
+nmap <silent> <leader>t :! ctags -R .<cr><cr>
+nmap <silent> <leader>s :Alternate<cr>
-nnoremap <C-l> :noh<cr>
+nnoremap <silent> <C-l> :noh<cr>
nnoremap <C-u> <C-u>zz
nnoremap <C-d> <C-d>zz
nnoremap gd <C-]>
@@ -53,9 +53,16 @@ au FileType lua set shiftwidth=2
colors mooncheese
hi clear Error
+" Saves the last line I was on in a file
+autocmd BufReadPost *
+ \ if line("'\"") > 0 && line("'\"") <= line("$") |
+ \ exe "normal! g`\"" |
+ \ endif
+
call plug#begin()
Plug 'vim-fuzzbox/fuzzbox.vim'
Plug 'tpope/vim-fugitive'
+Plug 'ton/vim-alternate'
call plug#end()