Last active
June 18, 2016 17:12
-
-
Save pazams/216856a04eabe1cd8bda to your computer and use it in GitHub Desktop.
my extra .vimrc settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => pazams opinionated- ‘d is for delete’ & ‘ leader-d is for cut’ (shared clipboard register mode) | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" if you are using the yankring plugin, there could be some conflicts. | |
" to make the most of these suggested mappings, | |
" make sure to delete any keys mapped below from the following line at yankring.vim | |
" (i.e. delete 'x' and 'D'): | |
" let g:yankring_n_keys = 'Y D x X' | |
" if you are using the yankstack plugin, just call this line before yank/delete related keys: | |
" call yankstack#setup() | |
nnoremap x "_x | |
nnoremap X "_X | |
nnoremap d "_d | |
nnoremap D "_D | |
vnoremap d "_d | |
if has('unnamedplus') | |
set clipboard=unnamed,unnamedplus | |
nnoremap <leader>d "+d | |
nnoremap <leader>D "+D | |
vnoremap <leader>d "+d | |
else | |
set clipboard=unnamed | |
nnoremap <leader>d "*d | |
nnoremap <leader>D "*D | |
vnoremap <leader>d "*d | |
endif | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" map escape | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
imap kj <Esc> | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" use tommorow Colorscheme | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
if has("gui_running") | |
colorscheme Tomorrow | |
else | |
" maor set light also here: | |
set background=light | |
colorscheme Tomorrow | |
endif | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" make Y consistent with all the other capital letter commands | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
nnoremap Y y$ | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" NeoVim bindings at the bottom(!) so regular vim will not | |
" stop sourcing in the middle | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" NeoVim map escape | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
tnoremap kj <C-\><C-n> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment