dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit 9ff82cab6369d3c73776c2a64c3175ea3f72dae7
parent 76536a72a268d4ba2d906fe300fb429badcc9ec3
Author: pyratebeard <root@pyratebeard.net>
Date:   Fri, 25 Nov 2022 16:31:38 +0000

splits and terms. fzf. git add and commit

Diffstat:
Mvim/.vimrc | 13+++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/vim/.vimrc b/vim/.vimrc @@ -52,6 +52,10 @@ set softtabstop=4 " enable auto indentation set autoindent +" split directions +set splitright +set splitbelow + " remove trailing whitespaces and ^M chars autocmd FileType c,cpp,java,php,js,python,twig,xml,yml autocmd BufWritePre <buffer> :call setline(1,map(getline(1,"$"),'substitute(v:val,"\\s\\+$","","")')) set list @@ -84,7 +88,11 @@ nnoremap <F9> :setl ai<CR> nnoremap <C-w>g :Goyo<CR> " open shell in current buffer dir -nnoremap <leader>z :cd %:p:h <bar>!zsh<CR><CR> +nnoremap <leader>z :cd %:h <bar>:vert term<CR> +nnoremap <leader>Z :cd %:h <bar>:term<CR> + +" start webserver +"nnoremap <leader>h :!busybox httpd -f -h . -p 8080 " list buffers and wait for number nnoremap <leader>b :ls<CR>:b @@ -94,7 +102,7 @@ nnoremap <C-w>w :set wrap<CR>:Spell<CR> " fzf "nnoremap <leader>f :cd $HOME/src <bar>FZF<CR> -nnoremap <leader>f :cd $HOME/src <bar>FZF<CR> +nnoremap <leader>f :cd %:p:h <bar>FZF<CR> " list registers nnoremap <leader>r :registers<CR> @@ -121,6 +129,7 @@ command Chmodx :!chmod a+x % " git commit shortcut command Gc Git commit -S +command Gac Git commit -a -S -m "updates" command Gf Git fetch command Gp Git push command -nargs=* Gco Git checkout