mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-26 00:01:27 -05:00
Fix alt+dir for sidebars, add ctrl-w split shortcuts and gitv colorscheme
This commit is contained in:
parent
56e3729608
commit
fb15796c0b
3 changed files with 62 additions and 0 deletions
|
@ -491,6 +491,12 @@ hi SpellLocal guisp=NONE gui=NONE guifg=NONE guibg=NONE ctermfg=NONE ctermbg=NON
|
||||||
hi! link gitconfigAssignment Label
|
hi! link gitconfigAssignment Label
|
||||||
hi! link ExtraditeLogName Type
|
hi! link ExtraditeLogName Type
|
||||||
|
|
||||||
|
"gitv
|
||||||
|
hi! link gitvSubject String
|
||||||
|
hi! link gitvLocalUncommit Special
|
||||||
|
hi! link gitvLocalCommited Identifier
|
||||||
|
hi! link gitvSeperatorMarks Delimiter
|
||||||
|
|
||||||
"notes
|
"notes
|
||||||
call s:X("notesRule","","","bold","","")
|
call s:X("notesRule","","","bold","","")
|
||||||
call s:X("WarningMsg","#ffd787","#2c2c2c","standout,bold","Yellow",s:termBlack)
|
call s:X("WarningMsg","#ffd787","#2c2c2c","standout,bold","Yellow",s:termBlack)
|
||||||
|
|
|
@ -68,6 +68,16 @@
|
||||||
" <Alt-c> | (N) -> create a new tab with vimfiler
|
" <Alt-c> | (N) -> create a new tab with vimfiler
|
||||||
" <Alt-d> | (N) -> create a new tab with a double pane vimfiler
|
" <Alt-d> | (N) -> create a new tab with a double pane vimfiler
|
||||||
"
|
"
|
||||||
|
" (split)
|
||||||
|
" <Ctrl-w>{ | (N) -> rotate counter-clockwise
|
||||||
|
" <Ctrl-w>} | (N) -> rotate clockwise
|
||||||
|
" <Ctrl-w>] | (N) -> split vertically
|
||||||
|
" <Ctrl-w>0 | (N) -> create a vertical split 25% of the window
|
||||||
|
" <Ctrl-w>) | (N) -> create a vertical split 75% of the window
|
||||||
|
" <Ctrl-w>[ | (N) -> split horizontally
|
||||||
|
" <Ctrl-w>9 | (N) -> create a horizontal split 25% of the window
|
||||||
|
" <Ctrl-w>( | (N) -> create a horizontal split 75% of the window
|
||||||
|
"
|
||||||
" (display)
|
" (display)
|
||||||
" <Backspace> | (N) -> reset window and clear search
|
" <Backspace> | (N) -> reset window and clear search
|
||||||
" // | (N) -> reset window and clear search
|
" // | (N) -> reset window and clear search
|
||||||
|
@ -396,6 +406,17 @@
|
||||||
nnoremap <silent><expr> <A-d> ':VimFiler -tab -project -double<CR>'
|
nnoremap <silent><expr> <A-d> ':VimFiler -tab -project -double<CR>'
|
||||||
"}
|
"}
|
||||||
|
|
||||||
|
"SPLIT:{
|
||||||
|
nmap <expr><silent> <C-w>{ ':wincmd R<CR>'
|
||||||
|
nmap <expr><silent> <C-w>} ':wincmd r<CR>'
|
||||||
|
nmap <expr><silent> <C-w>] ':vs<CR>'
|
||||||
|
nmap <expr><silent> <C-w>0 ':VSplit25<CR>'
|
||||||
|
nmap <expr><silent> <C-w>) ':VSplit75<CR>'
|
||||||
|
nmap <expr><silent> <C-w>[ ':sp<CR>:wincmd j<CR>'
|
||||||
|
nmap <expr><silent> <C-w>9 ':Split25<CR>'
|
||||||
|
nmap <expr><silent> <C-w>( ':Split75<CR>'
|
||||||
|
"}
|
||||||
|
|
||||||
"DISPLAY:{
|
"DISPLAY:{
|
||||||
"clear search and reset buffer
|
"clear search and reset buffer
|
||||||
nnoremap <silent><expr> <BackSpace> ':noh<CR>:redraw!<CR>'
|
nnoremap <silent><expr> <BackSpace> ':noh<CR>:redraw!<CR>'
|
||||||
|
@ -766,6 +787,14 @@
|
||||||
autocmd Filetype qf,gundo,vimfiler,extradite noremap <buffer> <C-l> <Nop>
|
autocmd Filetype qf,gundo,vimfiler,extradite noremap <buffer> <C-l> <Nop>
|
||||||
autocmd Filetype qf,gundo,vimfiler,extradite noremap <buffer> <C-Left> <Nop>
|
autocmd Filetype qf,gundo,vimfiler,extradite noremap <buffer> <C-Left> <Nop>
|
||||||
autocmd Filetype qf,gundo,vimfiler,extradite noremap <buffer> <C-h> <Nop>
|
autocmd Filetype qf,gundo,vimfiler,extradite noremap <buffer> <C-h> <Nop>
|
||||||
|
autocmd Filetype qf,gundo,vimfiler,extradite noremap <buffer> <A-Up> <Nop>
|
||||||
|
autocmd Filetype qf,gundo,vimfiler,extradite noremap <buffer> <A-k> <Nop>
|
||||||
|
autocmd Filetype qf,gundo,vimfiler,extradite noremap <buffer> <A-Down> <Nop>
|
||||||
|
autocmd Filetype qf,gundo,vimfiler,extradite noremap <buffer> <A-j> <Nop>
|
||||||
|
autocmd Filetype qf,gundo,vimfiler,extradite noremap <buffer> <A-Right> <Nop>
|
||||||
|
autocmd Filetype qf,gundo,vimfiler,extradite noremap <buffer> <A-l> <Nop>
|
||||||
|
autocmd Filetype qf,gundo,vimfiler,extradite noremap <buffer> <A-Left> <Nop>
|
||||||
|
autocmd Filetype qf,gundo,vimfiler,extradite noremap <buffer> <A-h> <Nop>
|
||||||
autocmd Filetype qf,gundo,vimfiler noremap <buffer> <S-Up> <Nop>
|
autocmd Filetype qf,gundo,vimfiler noremap <buffer> <S-Up> <Nop>
|
||||||
autocmd Filetype qf,gundo,vimfiler noremap <buffer> <S-k> <Nop>
|
autocmd Filetype qf,gundo,vimfiler noremap <buffer> <S-k> <Nop>
|
||||||
autocmd Filetype qf,gundo,vimfiler noremap <buffer> <S-Down> <Nop>
|
autocmd Filetype qf,gundo,vimfiler noremap <buffer> <S-Down> <Nop>
|
||||||
|
|
|
@ -57,6 +57,7 @@
|
||||||
"USER INTERFACE: {{{
|
"USER INTERFACE: {{{
|
||||||
set laststatus=2 showcmd statusline=%F%m%r%h%w[%L][%{&ff}]%y[%p%%][%04l,%04v] "statusline init and config
|
set laststatus=2 showcmd statusline=%F%m%r%h%w[%L][%{&ff}]%y[%p%%][%04l,%04v] "statusline init and config
|
||||||
set lazyredraw "don't redraw the screen while macros are executing
|
set lazyredraw "don't redraw the screen while macros are executing
|
||||||
|
set noequalalways "don't force splits to be equal in size when closing or opening one
|
||||||
set number "enable line numbers
|
set number "enable line numbers
|
||||||
set nowrap "disable line wrapping
|
set nowrap "disable line wrapping
|
||||||
set cursorline cursorcolumn "enable row/column highlighting
|
set cursorline cursorcolumn "enable row/column highlighting
|
||||||
|
@ -105,5 +106,31 @@
|
||||||
autocmd BufFilePost * filetype detect
|
autocmd BufFilePost * filetype detect
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
function s:vResize25()
|
||||||
|
vs|wincmd =|q
|
||||||
|
endfunction
|
||||||
|
command! -buffer VResize25 call s:vResize25()
|
||||||
|
function s:vs25()
|
||||||
|
vs|call s:vResize25()
|
||||||
|
endfunction
|
||||||
|
command! -buffer VSplit25 call s:vs25()
|
||||||
|
function s:vs75()
|
||||||
|
vs|wincmd h|call s:vResize25()|wincmd l
|
||||||
|
endfunction
|
||||||
|
command! -buffer VSplit75 call s:vs75()
|
||||||
|
|
||||||
|
function s:hResize25()
|
||||||
|
sp|wincmd =|q
|
||||||
|
endfunction
|
||||||
|
command! -buffer HResize25 call s:hResize25()
|
||||||
|
function s:sp25()
|
||||||
|
sp|call s:hResize25()|wincmd j
|
||||||
|
endfunction
|
||||||
|
command! -buffer Split25 call s:sp25()
|
||||||
|
function s:sp75()
|
||||||
|
sp|wincmd j|call s:hResize25()
|
||||||
|
endfunction
|
||||||
|
command! -buffer Split75 call s:sp75()
|
||||||
"}}}
|
"}}}
|
||||||
"}}}
|
"}}}
|
||||||
|
|
Loading…
Reference in a new issue