Last active
May 19, 2016 20:03
-
-
Save geggo98/97cfffc47140f7a645970764076b6f2e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
let g:solarized_termcolors=256 | |
set t_Co=256 | |
set background=dark | |
colorscheme solarized | |
if has('mouse') | set mouse=a | endif | |
set nrformats= | |
set number | |
set relativenumber | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
"COPY/PASTE ON A MAC: Alt-yank and Alt-paste | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
if !has('nvim') | |
vnoremap <A-y> :w !pbcopy<CR><CR> | |
noremap <A-p> :r !pbpaste<CR><CR> | |
endif | |
if !has("gui_running") | |
set clipboard=unnamed | |
endif | |
" Press <F2> before pasting to disable autoindenting" | |
set pastetoggle=<F2> | |
"Easy navigation between windows | |
" https://neovim.io/doc/user/nvim_terminal_emulator.html | |
if has('nvim') | |
:tnoremap <A-h> <C-\><C-n><C-w>h | |
:tnoremap <A-j> <C-\><C-n><C-w>j | |
:tnoremap <A-k> <C-\><C-n><C-w>k | |
:tnoremap <A-l> <C-\><C-n><C-w>l | |
endif | |
:nnoremap <A-h> <C-w>h | |
:nnoremap <A-j> <C-w>j | |
:nnoremap <A-k> <C-w>k | |
:nnoremap <A-l> <C-w>l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment