diff options
-rw-r--r-- | home/.config/nvim/init.vim | 5 |
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> |