aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/init.vim
diff options
context:
space:
mode:
authorCaleb Noelke <cjn075@firemail.cc>2024-10-21 12:54:52 -0400
committerCaleb Noelke <cjn075@firemail.cc>2024-10-21 12:54:52 -0400
commitfe96c467eec5d66864dde93b4b5186524e258fd1 (patch)
treef9c7550e03241bb087ade674b459667b1f63ae9a /.config/nvim/init.vim
parent398886b6d4631bb1e695bf7851f1012c64f6895a (diff)
parent628ed4dc995f3c09e33c24a01c817c18b1a268af (diff)
Diffstat (limited to '.config/nvim/init.vim')
-rw-r--r--.config/nvim/init.vim28
1 files changed, 12 insertions, 16 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 255ca27..5859d61 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -35,10 +35,10 @@ set noruler
set laststatus=0
set noshowcmd
" colorscheme wal
+colorscheme vim
" Some basics:
nnoremap c "_c
- set nocompatible
filetype plugin on
syntax on
set encoding=utf-8
@@ -59,18 +59,15 @@ set noshowcmd
" Nerd tree
map <leader>n :NERDTreeToggle<CR>
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
- if has('nvim')
- let NERDTreeBookmarksFile = stdpath('data') . '/NERDTreeBookmarks'
- else
- let NERDTreeBookmarksFile = '~/.vim' . '/NERDTreeBookmarks'
- endif
+ let NERDTreeBookmarksFile = stdpath('data') . '/NERDTreeBookmarks'
-" vimling:
- nm <leader>d :call ToggleDeadKeys()<CR>
- imap <leader>d <esc>:call ToggleDeadKeys()<CR>a
- nm <leader>i :call ToggleIPA()<CR>
- imap <leader>i <esc>:call ToggleIPA()<CR>a
- nm <leader>q :call ToggleProse()<CR>
+" vim-airline
+ if !exists('g:airline_symbols')
+ let g:airline_symbols = {}
+ endif
+ let g:airline_symbols.colnr = ' C:'
+ let g:airline_symbols.linenr = ' L:'
+ let g:airline_symbols.maxlinenr = '☰ '
" Shortcutting split navigation, saving a keypress:
map <C-h> <C-w>h
@@ -112,10 +109,9 @@ set noshowcmd
cabbrev w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
" Enable Goyo by default for mutt writing
- autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80
- autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo | set bg=light
- autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo\|x!<CR>
- autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
+ autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo 80 | call feedkeys("jk")
+ autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo!\|x!<CR>
+ autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo!\|q!<CR>
" Automatically deletes all trailing whitespace and newlines at end of file on save. & reset cursor position
autocmd BufWritePre * let currPos = getpos(".")