basic vim updates
This commit is contained in:
parent
5886b3f5f2
commit
38bbd893d0
2 changed files with 33 additions and 8 deletions
29
vim/.config/nvim/ginit.vim
Normal file
29
vim/.config/nvim/ginit.vim
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
" Enable Mouse
|
||||||
|
set mouse=a
|
||||||
|
|
||||||
|
" Set Editor Font
|
||||||
|
if exists(':GuiFont')
|
||||||
|
" Use GuiFont! to ignore font errors
|
||||||
|
GuiFont Hack:10
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Disable GUI Tabline
|
||||||
|
if exists(':GuiTabline')
|
||||||
|
GuiTabline 0
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Disable GUI Popupmenu
|
||||||
|
if exists(':GuiPopupmenu')
|
||||||
|
GuiPopupmenu 0
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Enable GUI ScrollBar
|
||||||
|
if exists(':GuiScrollBar')
|
||||||
|
GuiScrollBar 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Right Click Context Menu (Copy-Cut-Paste)
|
||||||
|
nnoremap <silent><RightMouse> :call GuiShowContextMenu()<CR>
|
||||||
|
inoremap <silent><RightMouse> <Esc>:call GuiShowContextMenu()<CR>
|
||||||
|
xnoremap <silent><RightMouse> :call GuiShowContextMenu()<CR>gv
|
||||||
|
snoremap <silent><RightMouse> <C-G>:call GuiShowContextMenu()<CR>gv
|
12
vim/.vimrc
12
vim/.vimrc
|
@ -195,10 +195,6 @@ cmap w!! w !sudo tee > /dev/null %
|
||||||
" Disable F1 key
|
" Disable F1 key
|
||||||
nmap <F1> <nop>
|
nmap <F1> <nop>
|
||||||
|
|
||||||
" Go shortcuts just for .go files
|
|
||||||
autocmd FileType go nmap <leader>r <Plug>(go-run)
|
|
||||||
autocmd FileType go nmap <leader>t <Plug>(go-test)
|
|
||||||
|
|
||||||
" ==================== File searching ====================
|
" ==================== File searching ====================
|
||||||
set wildmenu
|
set wildmenu
|
||||||
set wildmode=list:full
|
set wildmode=list:full
|
||||||
|
@ -212,10 +208,10 @@ nnoremap <leader>t :tabfind *
|
||||||
|
|
||||||
" ==================== Fugitive ====================
|
" ==================== Fugitive ====================
|
||||||
nnoremap <leader>ga :Git add %:p<CR><CR>
|
nnoremap <leader>ga :Git add %:p<CR><CR>
|
||||||
nnoremap <leader>gs :Gstatus<CR>
|
nnoremap <leader>gs :Git status<CR>
|
||||||
nnoremap <leader>gp :Gpush<CR>
|
nnoremap <leader>gp :Git push<CR>
|
||||||
vnoremap <leader>gb :Gblame<CR>
|
vnoremap <leader>gb :Git blame<CR>
|
||||||
|
nnoremap <leader>gc :Git commit<CR>
|
||||||
|
|
||||||
" =================== nvim ====================
|
" =================== nvim ====================
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue