about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-05T18·29+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-05T18·29+0000
commit39420bb948d1d6addd47c53723c410b1c2d5c4b7 (patch)
treeebc968fdc81d29dbfd6f8357778d19ee7e359f7d
parent04d0ee5a15b849be878f865cf48010e880d68f22 (diff)
Amend init.vim
- support <leader>e* KBDs for quickly editing common configuration files
- prefer dark theme to light theme
- prefer nowrap by default instead of toggling wrap
-rw-r--r--configs/shared/misc/.config/nvim/init.vim15
1 files changed, 12 insertions, 3 deletions
diff --git a/configs/shared/misc/.config/nvim/init.vim b/configs/shared/misc/.config/nvim/init.vim
index ec405eaef4cb..82fbe84844a1 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 <buffer> gf :Prettier<CR>
 " Similar to Tmux mapping alt-z in my tmux.conf
 nnoremap t% :tab sp<CR>
 
+" Allow C-g to act like C-c the way it does in Emacs
+cnoremap <C-g> <C-c>
 
 " 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 <leader>ev :vsplit $MYVIMRC<CR>
+nnoremap <leader>ee :vsplit ~/.emacs.d/init.el<CR>
+nnoremap <leader>ez :vsplit ~/.zshrc<CR>
+nnoremap <leader>ea :vsplit ~/aliases.zsh<CR>
+nnoremap <leader>ef :vsplit ~/functions.zsh<CR>
+nnoremap <leader>el :vsplit ~/variables.zsh<CR>
+nnoremap <leader>ex :vsplit ~/.xsessionrc<CR>
+nnoremap <leader>ei :vsplit ~/.config/i3/config<CR>
 
 " quickly source your vimrc
 nnoremap <leader>sv :source $MYVIMRC<CR>