diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-10-05 12:54:25 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-10-05 12:54:25 +0200 |
commit | bbc16c63fe891e010a8318f68367d760bc8c8ec1 (patch) | |
tree | b1cd555fcb240f8cb083d1bcc633a56294ea522d /.vim/vimrc | |
parent | bc61bc351245dc5343a41d143b9aec6156e3ac80 (diff) | |
download | dotfiles-bbc16c63fe891e010a8318f68367d760bc8c8ec1.tar.gz |
vim shortcut changes
Diffstat (limited to '.vim/vimrc')
-rw-r--r-- | .vim/vimrc | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -2,7 +2,6 @@ " VARIABLES " =========== - set nocompatible "Disable bell set vb @@ -40,15 +39,23 @@ filetype plugin indent on set nu highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE +set foldmethod=syntax + " ============== " SHORTCUTS " ============== "Switch windows with keys -nmap <silent> <C-w-k> :wincmd k<CR> -nmap <silent> <C-w-j> :wincmd j<CR> -nmap <silent> <C-w-h> :wincmd h<CR> -nmap <silent> <C-w-l> :wincmd l<CR> +"nmap <silent> <C-w-k> :wincmd k<CR> +"nmap <silent> <C-w-j> :wincmd j<CR> +"nmap <silent> <C-w-h> :wincmd h<CR> +"nmap <silent> <C-w-l> :wincmd l<CR> + +nmap <silent> <C-s> :vsplit<CR> +nmap <silent> <C-e> :e .<CR> + +nnoremap <silent> <Space> @=(foldlevel('.')?'za':"\<Space>")<CR> +vnoremap <Space> zf nmap <silent> <F8> :make<CR> |