Set leader key and add Gina shortcuts in vim

This commit is contained in:
coolneng 2019-10-02 17:09:13 +02:00
parent dc574b5615
commit 99fdb2eb73
1 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,6 @@
""Basic stuff ""Basic stuff
set number set number
set ttyfast
""Colors ""Colors
colorscheme synthwave colorscheme synthwave
set t_Co=256 set t_Co=256
@ -15,7 +16,14 @@ set backupdir=~/.cache
set directory=~/.cache set directory=~/.cache
""Keybindings ""Keybindings
set pastetoggle=<F2> set pastetoggle=<F2>
map <Space> :noh<CR> let mapleader="\<Space>"
nnoremap <leader>n :noh<cr>
"Move the current line up or down
nnoremap <leader>k :m-2<cr>==
nnoremap <leader>j :m+<cr>==
"Gina status and commit shotcuts
nnoremap <leader>gs :Gina status<cr>
nnoremap <leader>gc :Gina commit<cr>
""Markdown ""Markdown
au FileType markdown Goyo au FileType markdown Goyo
let g:markdown_fenced_languages = ['cpp', 'python', 'java', 'sql'] let g:markdown_fenced_languages = ['cpp', 'python', 'java', 'sql']