summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2018-03-30 17:26:55 -0400
committerJune McEnroe <programble@gmail.com>2018-03-30 17:26:55 -0400
commit24b1b683c7d1ccf21e3801520b3bb6cfde39ebce (patch)
tree55eb4ce8e04ef995447fc8de5795f07b8a3ff6d4
parentAdd d-_-b crate (diff)
downloadsrc-24b1b683c7d1ccf21e3801520b3bb6cfde39ebce.tar.gz
src-24b1b683c7d1ccf21e3801520b3bb6cfde39ebce.zip
Set g:clipboard to pb{copy,paste} always
Previously neovim would use these automatically if it found them, but
now it only checks for them on macOS. pbd continues to work well.
-rw-r--r--home/.config/nvim/init.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim
index 04a9d56b..e58b6996 100644
--- a/home/.config/nvim/init.vim
+++ b/home/.config/nvim/init.vim
@@ -7,7 +7,8 @@ command! W w
 command! Q q
 autocmd BufNewFile,BufRead *.asm,*.mac setfiletype nasm
 
-set tabstop=8 expandtab shiftwidth=4 shiftround smartindent cinoptions=l1(sU1m1
+set tabstop=8 expandtab shiftwidth=4 shiftround
+set smartindent cinoptions=l1(sU1m1
 set ignorecase smartcase inccommand=nosplit
 nmap <leader><leader> :nohlsearch<CR>
 set foldmethod=syntax foldlevel=99
@@ -22,6 +23,8 @@ autocmd TermOpen * setlocal nonumber statusline=%{b:term_title}
 autocmd BufEnter term://* startinsert
 tmap <C-w> <C-\><C-n><C-w>
 
+let g:clipboard = {'copy':{'+':'pbcopy'},'paste':{'+':'pbpaste'}}
+
 nmap <leader>h :0/^#include </,$?^#include <?sort<CR>:nohlsearch<CR>
 nmap <leader>u :0/^use/,$?^use?sort<CR>:nohlsearch<CR>
 nmap <leader>c :0/extern crate/,$?extern crate?sort<CR>:nohlsearch<CR>
are"June McEnroe 2022-03-31Publish "Compassion"June McEnroe 2022-03-24Skip matches with ident chars on either sideJune McEnroe This fixes, for example, where the link gets placed on static regex_t regex(const char *pattern, int flags) in title.c. 2022-03-24Add The Invisible Life of Addie LaRueJune McEnroe So good, but so long. Reminded me of The Ten Thousand Doors of January at the beginning, and more of that N. K. Jemisin series about gods later. I like this interacting with gods and becoming something like one sort of thing. God, it took me a whole month (more?) to read and this is only my third book of the year :( I need some more novellas to read, but the other books I have from the library currently are also thick. 2022-03-22Source ~/.profile.local if it existsJune McEnroe 2022-03-18Publish "Addendum 2021"June McEnroe 2022-03-16Remove wcwidth portJune McEnroe DYLD_FORCE_FLAT_NAMESPACE no longer exists in macOS 12 so this approach doesn't work anymore. Moved to <https://git.causal.agency/jorts/tree/wcwidth> and compiled into <https://git.causal.agency/jorts/tree/ncurses>. 2022-03-16Remove -j4 from ./PlanJune McEnroe Plan learned to set this automatically! 2022-03-15Rewrite Linux install.sh for DebianJune McEnroe 2022-03-15Remove dashJune McEnroe