Skip to content

Commit

Permalink
vimrc: hjkl window movement or split if no room left
Browse files Browse the repository at this point in the history
  • Loading branch information
mslehto committed Oct 14, 2018
1 parent 988b178 commit e24cb91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ nnoremap <F4> :make!<cr>
nnoremap <silent> <F5> :let _s=@/ <Bar> :%s/\s\+$//e <Bar> :let @/=_s <Bar> :nohl <Bar> :unlet _s <CR>
set makeprg=gmake

map <silent> <C-h> :call functions#WinMove('h')<cr>
map <silent> <C-j> :call functions#WinMove('j')<cr>
map <silent> <C-k> :call functions#WinMove('k')<cr>
map <silent> <C-l> :call functions#WinMove('l')<cr>
if has('gui_running')
set list listchars=tab:>-,nbsp:.,trail:.,extends:>,precedes:<,eol:\|
let &showbreak = '^'
Expand Down

0 comments on commit e24cb91

Please sign in to comment.