Compare commits
4 Commits
c2b0525451
...
ed506ce6c0
| Author | SHA1 | Date | |
|---|---|---|---|
| ed506ce6c0 | |||
| 432dd88a1c | |||
| b3b907c408 | |||
| b3d099122a |
@@ -66,11 +66,11 @@ set -g message-style fg=white,bold,bg=green
|
|||||||
|
|
||||||
# highlight current window
|
# highlight current window
|
||||||
setw -g window-status-style fg=cyan,bg=colour235
|
setw -g window-status-style fg=cyan,bg=colour235
|
||||||
setw -g window-status-current-style fg=white,bold,bg=red
|
setw -g window-status-current-style fg=black,bold,bg=cyan
|
||||||
|
|
||||||
# set color of active pane
|
# set color of active pane
|
||||||
set -g pane-border-style fg=colour240,bg=black
|
set -g pane-border-style fg=colour240,bg=default
|
||||||
set -g pane-active-border-style fg=green,bg=black
|
set -g pane-active-border-style fg=green,bg=default
|
||||||
|
|
||||||
# To copy, left click and drag to highlight text in yellow,
|
# To copy, left click and drag to highlight text in yellow,
|
||||||
# once you release left click yellow text will disappear and will automatically be available in clibboard
|
# once you release left click yellow text will disappear and will automatically be available in clibboard
|
||||||
|
|||||||
12
vim/vimrc
12
vim/vimrc
@@ -98,8 +98,12 @@ nnoremap <leader>gu :GitGutterUndoHunk<CR> " undo git change under the line
|
|||||||
" Magit plugin config
|
" Magit plugin config
|
||||||
"
|
"
|
||||||
nnoremap <leader>gs :Magit<CR>| " git status
|
nnoremap <leader>gs :Magit<CR>| " git status
|
||||||
nnoremap <leader>gp :! git push<CR>| " git Push
|
function GitPullPush(cmd)
|
||||||
nnoremap <leader>gP :! git pull<CR>| " git Pull
|
echo system('git '.a:cmd)
|
||||||
|
" redraw!
|
||||||
|
endfunction
|
||||||
|
nnoremap <leader>gp :call GitPullPush("push")<CR>| " git Push
|
||||||
|
nnoremap <leader>gP :call GitPullPush("pull")<CR>| " git Pull
|
||||||
|
|
||||||
"
|
"
|
||||||
" NERDTree plugin config
|
" NERDTree plugin config
|
||||||
@@ -119,11 +123,13 @@ let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.8 } }
|
|||||||
command! -bang -nargs=* Rg call
|
command! -bang -nargs=* Rg call
|
||||||
\fzf#vim#grep('rg
|
\fzf#vim#grep('rg
|
||||||
\ --hidden
|
\ --hidden
|
||||||
|
\ --no-ignore
|
||||||
\ -g !node_modules/ -g !.git/
|
\ -g !node_modules/ -g !.git/
|
||||||
\ --column --line-number --no-heading --color=always --smart-case '.shellescape(<q-args>),
|
\ --column --line-number --no-heading --color=always --smart-case '.shellescape(<q-args>),
|
||||||
\1,
|
\1,
|
||||||
\fzf#vim#with_preview({'options': '--exact --delimiter : --nth 4..'}), <bang>0) " is for strict search by default and other unknown stuff is to exclude filenames from search results
|
\fzf#vim#with_preview({'options': '--exact --delimiter : --nth 4..'}), <bang>0) " is for strict search by default and other unknown stuff is to exclude filenames from search results
|
||||||
|
|
||||||
|
nnoremap <silent> <Leader>ag :Rg <C-R><C-W><CR>| " searching for word ander cursor
|
||||||
|
|
||||||
nnoremap <silent> <Leader>b :Buffers<CR>
|
nnoremap <silent> <Leader>b :Buffers<CR>
|
||||||
nnoremap <silent> <Leader>f :Files<CR>
|
nnoremap <silent> <Leader>f :Files<CR>
|
||||||
@@ -149,7 +155,6 @@ let g:ansible_yamlKeyName = 'yamlKey'
|
|||||||
" CoC plugin settings
|
" CoC plugin settings
|
||||||
"
|
"
|
||||||
let g:coc_global_extensions = ['coc-pyright']
|
let g:coc_global_extensions = ['coc-pyright']
|
||||||
source ~/.vim/coc.vim
|
|
||||||
function! s:enable_coc_for_type()
|
function! s:enable_coc_for_type()
|
||||||
let l:filesuffix_whitelist = ['py']
|
let l:filesuffix_whitelist = ['py']
|
||||||
if index(l:filesuffix_whitelist, expand('%:e')) == -1
|
if index(l:filesuffix_whitelist, expand('%:e')) == -1
|
||||||
@@ -157,6 +162,7 @@ function! s:enable_coc_for_type()
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
autocmd BufRead,BufNewFile * call s:enable_coc_for_type()
|
autocmd BufRead,BufNewFile * call s:enable_coc_for_type()
|
||||||
|
source ~/.vim/coc.vim
|
||||||
|
|
||||||
|
|
||||||
" YAML files config
|
" YAML files config
|
||||||
|
|||||||
Reference in New Issue
Block a user