From 4f8c7d55b516543da97649aba6507b7c595767a4 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Fri, 30 Mar 2018 17:26:55 -0400 Subject: 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. --- home/.config/nvim/init.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 :nohlsearch set foldmethod=syntax foldlevel=99 @@ -22,6 +23,8 @@ autocmd TermOpen * setlocal nonumber statusline=%{b:term_title} autocmd BufEnter term://* startinsert tmap +let g:clipboard = {'copy':{'+':'pbcopy'},'paste':{'+':'pbpaste'}} + nmap h :0/^#include :nohlsearch nmap u :0/^use/,$?^use?sort:nohlsearch nmap c :0/extern crate/,$?extern crate?sort:nohlsearch -- cgit 1.4.1 1'>commit diff
Commit message (Collapse)Author
2018-04-02expand: Fix bugs with words connected to the right of $@Herbert Xu
On Sun, Mar 04, 2018 at 12:44:59PM +0100, Harald van Dijk wrote: > > command: set -- a ""; space=" "; printf "<%s>" "$@"$space > bash: <a><> > dash 0.5.8: <a>< > > dash 0.5.9.1: <a>< > > dash patched: <a><> This is actually composed of two bugs. First of all our tracking of quotemark is wrong so anything after "$@" becomes quoted. Once we fix that then the problem is that the first space character after "$@" is not recognised as an IFS. This patch fixes both. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2018-03-25Revert "[BUILTIN] Remove unnecessary restoration of format string in printf"Herbert Xu
This reverts commit 7bb413255368e94395237d789f522891093c5774. The commit breaks printf with more than argument. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2018-03-22parser: Fix backquote support in here-document EOF markHerbert Xu