diff options
Diffstat (limited to '.config/nvim')
| -rw-r--r-- | .config/nvim/init.vim | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 8346777..61deed6 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -31,10 +31,10 @@ set noshowmode set noruler set laststatus=0 set noshowcmd +colorscheme vim " Some basics: nnoremap c "_c - set nocompatible filetype plugin on syntax on set encoding=utf-8 @@ -55,22 +55,11 @@ 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 = {} + let g:airline_symbols = {} endif let g:airline_symbols.colnr = ' C:' let g:airline_symbols.linenr = ' L:' @@ -116,10 +105,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(".") |
