dotfiles

<-- duh.
git clone https://hhvn.uk/dotfiles
git clone git://hhvn.uk/dotfiles
Log | Files | Refs | Submodules | LICENSE

splits.vim (570B)


      1 set splitbelow splitright
      2 noremap <leader>z :vsplit 
      3 noremap <leader>Z :split 
      4 
      5 noremap <C-h> <C-w>h
      6 noremap <C-j> <C-w>j
      7 noremap <C-k> <C-w>k
      8 noremap <C-l> <C-w>l
      9 noremap <C-c> <C-w>c
     10 noremap <A-j> <C-w>+
     11 noremap <A-k> <C-w>-
     12 noremap <A-h> <C-w>>
     13 noremap <A-l> <C-w><
     14 
     15 function! Netrwmap(filetype)
     16 	if a:filetype == 'netrw'
     17 		silent! unmap! <c-l>
     18 		noremap! <C-l> <C-w>l
     19 	endif
     20 
     21 	return 0
     22 endfunction
     23 
     24 
     25 augroup Netrwstop
     26 	autocmd WinEnter,BufEnter * let _filetype=&filetype
     27 	autocmd WinEnter,BufEnter * let _void=Netrwmap(_filetype)
     28 augroup END
     29 
     30 set fillchars+=vert:\|