mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
vim <leader>g binding to open scripts under cursor
This commit is contained in:
parent
58e26fe176
commit
6a7e1de4c0
@ -25,6 +25,17 @@ set mouse=a
|
|||||||
set nohlsearch
|
set nohlsearch
|
||||||
set clipboard=unnamedplus
|
set clipboard=unnamedplus
|
||||||
|
|
||||||
|
highlight LineNr ctermfg=DarkGrey
|
||||||
|
|
||||||
|
" more convenient keys
|
||||||
|
noremap h ;
|
||||||
|
noremap ; l
|
||||||
|
noremap l k
|
||||||
|
noremap k j
|
||||||
|
noremap j h
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
" Some basics:
|
" Some basics:
|
||||||
nnoremap c "_c
|
nnoremap c "_c
|
||||||
set nocompatible
|
set nocompatible
|
||||||
@ -45,7 +56,8 @@ set clipboard=unnamedplus
|
|||||||
|
|
||||||
" Splits open at the bottom and right, which is non-retarded, unlike vim defaults.
|
" Splits open at the bottom and right, which is non-retarded, unlike vim defaults.
|
||||||
set splitbelow splitright
|
set splitbelow splitright
|
||||||
|
" Open script in vim
|
||||||
|
map <leader>g yiw: ! "$TERMINAL" -e vim "$(which <C-r>")" & <CR><CR>
|
||||||
" Nerd tree
|
" Nerd tree
|
||||||
map <leader>n :NERDTreeToggle<CR>
|
map <leader>n :NERDTreeToggle<CR>
|
||||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user