From 39420bb948d1d6addd47c53723c410b1c2d5c4b7 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 5 Mar 2019 18:29:59 +0000 Subject: [PATCH] Amend init.vim - support e* KBDs for quickly editing common configuration files - prefer dark theme to light theme - prefer nowrap by default instead of toggling wrap --- configs/shared/misc/.config/nvim/init.vim | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/configs/shared/misc/.config/nvim/init.vim b/configs/shared/misc/.config/nvim/init.vim index ec405eaef..82fbe8484 100644 --- a/configs/shared/misc/.config/nvim/init.vim +++ b/configs/shared/misc/.config/nvim/init.vim @@ -207,6 +207,8 @@ autocmd FileType javascript nnoremap gf :Prettier " Similar to Tmux mapping alt-z in my tmux.conf nnoremap t% :tab sp +" Allow C-g to act like C-c the way it does in Emacs +cnoremap " Prettier configuration let g:prettier#exec_cmd_async = 1 @@ -221,7 +223,7 @@ if has('nvim') endif set number -set wrap! +set nowrap set tabstop=2 set expandtab set shiftwidth=2 @@ -229,7 +231,7 @@ set background=dark syntax enable colorscheme one -set background=light +set background=dark " Vim in terminal cannot have a different font from the one set within your " terminal. However, this setting will set the font for the GUI version. @@ -255,8 +257,15 @@ set t_Co=255 highlight Comment cterm=italic -" quickly edit your vimrc +" quickly edit popular configuration files nnoremap ev :vsplit $MYVIMRC +nnoremap ee :vsplit ~/.emacs.d/init.el +nnoremap ez :vsplit ~/.zshrc +nnoremap ea :vsplit ~/aliases.zsh +nnoremap ef :vsplit ~/functions.zsh +nnoremap el :vsplit ~/variables.zsh +nnoremap ex :vsplit ~/.xsessionrc +nnoremap ei :vsplit ~/.config/i3/config " quickly source your vimrc nnoremap sv :source $MYVIMRC