Created
September 7, 2023 22:03
-
-
Save sourcevault/8d3ed60d900281e9332ba178d4aa3d39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Type :help nv for help. | |
" set noendofline binary | |
set ignorecase | |
let mapleader=<space> | |
let maplocalleader=e | |
" set winaltkeys=no | |
nnoremap <M-d> <C-d> | |
nnoremap <M-u> <C-u> | |
nnoremap <M-b> <C-b> | |
nnoremap <M-c> <C-n> | |
" ---- NAVIGATION.NORMAL_MODE | |
"-------- Left Hand Side | |
nnoremap <PageUp> 5k | |
nnoremap <Up> :Move by=lines forward=false<CR> | |
nnoremap <Down> :Move by=lines forward=true<CR> | |
nnoremap <PageDown> 5j | |
"-------- | |
nnoremap <S-Up> { | |
nnoremap <S-Down> } | |
nnoremap <M-PageUp> 10k | |
nnoremap <M-Up> 0k | |
nnoremap <M-Down> 0j | |
nnoremap <M-PageDown> 10j | |
nnoremap <S-PageDown> <C-i> | |
nnoremap <S-PageUp> <C-o> | |
"----- Right Hand Side | |
nnoremap <Home> :MoveTo to=bol extend=false<CR> | |
nnoremap <Left> b | |
nnoremap <Right> w | |
nnoremap <End> :MoveTo to=eol extend=false<CR> | |
"-------- | |
nnoremap <C-Home> ^ | |
nnoremap <C-Left> <Left> | |
nnoremap <C-Right> <Right> | |
nnoremap <C-End> $ | |
"-------- | |
nnoremap <M-Right> e | |
nnoremap <M-End> E | |
"-------- | |
nnoremap <S-Left> B | |
nnoremap <S-Right> W | |
"-------- | |
"-------- NAVIGATION.VISUAL_MODE | |
"-------- VISUAL NAVIGATION | |
"-------- Left Hand Side | |
vnoremap <PageDown> 5j | |
vnoremap <Up> { | |
vnoremap <Down> } | |
vnoremap <PageUp> 5k | |
"-------- | |
vnoremap <C-Up> k | |
vnoremap <C-Down> j | |
vnoremap <M-PageDown> 10j | |
vnoremap <M-Up> 0k | |
vnoremap <M-Down> 0j | |
vnoremap <M-PageUp> 10k | |
vnoremap <S-PageDown> <C-i> | |
vnoremap <S-Up> k$ | |
vnoremap <S-Down> j$ | |
vnoremap <S-PageUp> <C-o> | |
"-------- Right Hand Side | |
vnoremap <Home> ^ | |
vnoremap <Left> b | |
vnoremap <Right> w | |
vnoremap <End> g_ | |
"-------- | |
vnoremap <C-Home> 0 | |
vnoremap <C-Left> <Left> | |
vnoremap <C-Right> <Right> | |
vnoremap <C-End> $ | |
"-------- | |
vnoremap <M-Right> e | |
vnoremap <M-End> E | |
"-------- | |
vnoremap <S-Left> B | |
vnoremap <S-Right> W | |
"-------- | |
" extra based.h on remap ------------------ | |
" nmap ci<right> ciw | |
" nmap ci<S-right> ciW | |
" ---------------------------------------- | |
inoremap <PageUp> :MoveByLine forward=false<CR> | |
inoremap <PageDown> :MoveByLine forward=true<CR> | |
inoremap <M-PageUp> :MoveByLine forward=false lines=10<CR> | |
inoremap <M-PageDown> :MoveByLine forward=true lines=10<CR> | |
" ------- | |
nnoremap <Space>p "0P | |
vnoremap <Space>p "0P | |
" nnoremap p P | |
" vnoremap p P | |
" nnoremap P p | |
" vnoremap P p | |
" nnoremap h f | |
" nnoremap H F | |
" vnoremap h f | |
" vnoremap H F | |
" ------- | |
nnoremap <C-d> Vd | |
nnoremap <leader>i<right> V><Esc> | |
nnoremap <leader>i<left> V :Unindent<CR><Esc> | |
nnoremap <M-v> ^vg_ | |
nnoremap <Enter> i<Enter><Esc>0 | |
nnoremap <tab> :Reindent<CR> | |
nnoremap <leader><tab> :EnterReindent<CR> | |
nnoremap <BS> ' | |
nnoremap <Bslash> / | |
" Shift+Enter delete newline | |
nnoremap <S-Enter> gkgJ | |
nnoremap <leader>sbmf :SublimeBookmark type=show_file_bookmarks<CR> | |
nnoremap <leader>sbmp :SublimeBookmark type=show_project_bookmarks<CR> | |
nnoremap <leader>sbra :SublimeBookmark type=remove_all<CR> | |
" change however accepts movements -> ciw, ce, cw, ca", c2t,, etc. | |
vnoremap <leader>sa :write<CR> | |
nnoremap <leader>ww :ToggleSetting setting=word_wrap<CR> | |
"r | |
nnoremap <leader>tr :reg<bar>:FocusGroup group=0<CR> | |
nnoremap <leader>rh :RevertHunk<CR> | |
nnoremap <leader>rs :Neovintageous action=reveal_side_bar<CR> | |
vnoremap <leader>ri :Reindent single_line=false<CR> | |
nnoremap <leader>sts :SetSetting setting=tab_size value=2<CR> | |
nnoremap <leader>csl1 :CustomSetLayout size=1<CR> | |
nnoremap <leader>csl2 :CustomSetLayout size=2<CR> | |
nnoremap <leader>csl3 :CustomSetLayout size=3<CR> | |
nnoremap <leader>rc :ShowPanel panel=console toggle=true<CR> | |
nnoremap <leader>tc :ShowPanel panel=console toggle=true<Bar>:FocusGroup group=0<CR> | |
nnoremap <leader>of :ShowOverlay overlay=goto text=@<CR> | |
nnoremap <leader>ow :ShowOverlay overlay=goto text=#<CR> | |
nnoremap <leader>th :ToggleInlineDiff<CR> | |
nnoremap <leader>td :DiffChanges<CR> | |
nnoremap <leader>tt :ToggleTabs<CR> | |
nnoremap <leader>ts :ToggleSideBar<CR> | |
vnoremap <leader>sl :SplitSelectionIntoLines<CR> | |
nnoremap <leader>bt :SublimeBookmark type=toggle_line<CR> | |
nnoremap <leader>br :SublimeBookmark type=remove<CR> | |
nnoremap <leader>bl :SublimeBookmark type=goto<CR> | |
nnoremap <leader>bc :SublimeBookmark type=goto_next<CR> | |
nnoremap <leader>bn :SublimeBookmark type=add<CR> | |
"o | |
nnoremap <localleader>sz :ZoomPane fraction=0.90<CR> | |
nnoremap <localleader>si :ZoomPane fraction=0.50<CR> | |
nnoremap <localleader>ss :ZoomPane fraction=0.20<CR> | |
nnoremap <localleader>sd :DestroyPane direction=self<CR> | |
nnoremap <localleader>b :TravelToPane direction=up<Bar>:TravelToPane direction=down<CR> | |
nnoremap <localleader><down> :TravelToPane direction=down<CR> | |
nnoremap <localleader><up> :TravelToPane direction=up<CR> | |
nnoremap <localleader><right> :TravelToPane direction=right<CR> | |
nnoremap <localleader><left> :TravelToPane direction=left<CR> | |
nnoremap <localleader>p<down> :PullFileFromPane direction=down<CR> | |
nnoremap <localleader>p<up> :PullFileFromPane direction=up<CR> | |
nnoremap <localleader>p<right> :PullFileFromPane direction=right<CR> | |
nnoremap <localleader>p<left> :PullFileFromPane direction=left<CR> | |
nnoremap <localleader>c<down> :CreatePane direction=down<CR> | |
nnoremap <localleader>c<up> :CreatePane direction=up<CR> | |
nnoremap <localleader>c<right> :CreatePane direction=right<CR> | |
nnoremap <localleader>c<left> :CreatePane direction=left<CR> | |
nnoremap <localleader>l<down> :CloneFileToPane direction=down<CR> | |
nnoremap <localleader>l<up> :CloneFileToPane direction=up<CR> | |
nnoremap <localleader>l<right> :CloneFileToPane direction=right<CR> | |
nnoremap <localleader>l<left> :CloneFileToPane direction=left<CR> | |
nnoremap <localleader>d<down> :DestroyPane direction=down<CR> | |
nnoremap <localleader>d<up> :DestroyPane direction=up<CR> | |
nnoremap <localleader>d<right> :DestroyPane direction=right<CR> | |
nnoremap <localleader>d<left> :DestroyPane direction=left<CR> | |
nnoremap <localleader>m<down> :CarryFileToPane direction=down<CR> | |
nnoremap <localleader>m<up> :CarryFileToPane direction=up<CR> | |
nnoremap <localleader>m<right> :CarryFileToPane direction=right<CR> | |
nnoremap <localleader>m<left> :CarryFileToPane direction=left<CR> | |
nnoremap <localleader>z<up> :TravelToPane direction=up<Bar>:ZoomPane fraction=0.80<CR> | |
nnoremap <localleader>z<down> :TravelToPane direction=down<Bar>:ZoomPane fraction=0.80<CR> | |
nnoremap <localleader>z<left> :TravelToPane direction=left<Bar>:ZoomPane fraction=0.80<CR> | |
nnoremap <localleader>z<right> :TravelToPane direction=right<Bar>:ZoomPane fraction=0.80<CR> | |
"delete all empty line | |
" nnoremap <leader>dan :g/^$/d<CR> | |
"delete all text | |
" nnoremap <leader>dat :%s/.*//<CR> | |
" ..... TRASH ...... | |
nnoremap <leader><leader>a :AceJumpAfter<CR> | |
nnoremap <leader><leader>d :AceJumpAddCursor<CR> | |
nnoremap <leader><leader>s :AceJumpSelect<CR> | |
nnoremap <leader><leader>h :AceJumpWithinLine<CR> | |
nnoremap <leader><leader>l :AceJumpLine<CR> | |
nnoremap <leader><leader>w :AceJumpWord<CR> | |
nnoremap <leader>sly :set scrolloff=999<CR> | |
nnoremap <leader>sln :set scrolloff=0<CR> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment