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