summaryrefslogtreecommitdiff
path: root/.vim/vimrc
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-10-05 12:54:25 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-10-05 12:54:25 +0200
commitbbc16c63fe891e010a8318f68367d760bc8c8ec1 (patch)
treeb1cd555fcb240f8cb083d1bcc633a56294ea522d /.vim/vimrc
parentbc61bc351245dc5343a41d143b9aec6156e3ac80 (diff)
downloaddotfiles-bbc16c63fe891e010a8318f68367d760bc8c8ec1.tar.gz
vim shortcut changes
Diffstat (limited to '.vim/vimrc')
-rw-r--r--.vim/vimrc17
1 files changed, 12 insertions, 5 deletions
diff --git a/.vim/vimrc b/.vim/vimrc
index c604dea..8afb835 100644
--- a/.vim/vimrc
+++ b/.vim/vimrc
@@ -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>