Set leader key and add Gina shortcuts in vim
This commit is contained in:
parent
dc574b5615
commit
99fdb2eb73
10
vim/.vimrc
10
vim/.vimrc
|
@ -1,5 +1,6 @@
|
|||
""Basic stuff
|
||||
set number
|
||||
set ttyfast
|
||||
""Colors
|
||||
colorscheme synthwave
|
||||
set t_Co=256
|
||||
|
@ -15,7 +16,14 @@ set backupdir=~/.cache
|
|||
set directory=~/.cache
|
||||
""Keybindings
|
||||
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
|
||||
au FileType markdown Goyo
|
||||
let g:markdown_fenced_languages = ['cpp', 'python', 'java', 'sql']
|
||||
|
|
Loading…
Reference in New Issue