mirror of
https://github.com/bvanroll/_dotfiles.git
synced 2025-08-29 03:52:43 +00:00
new ctrl w binds like in vim
This commit is contained in:
@@ -167,6 +167,44 @@ gaps inner 5px
|
|||||||
gaps outer 4px
|
gaps outer 4px
|
||||||
|
|
||||||
# resize window (you can also use the mouse for that)
|
# resize window (you can also use the mouse for that)
|
||||||
|
|
||||||
|
bindsym ctrl+w mode focus
|
||||||
|
bindsym ctrl+shift+w mode move
|
||||||
|
mode "focus" {
|
||||||
|
bindsym Shift+h focus left
|
||||||
|
bindsym Shift+j focus down
|
||||||
|
bindsym Shift+k focus up
|
||||||
|
bindsym Shift+l focus right
|
||||||
|
|
||||||
|
bindsym h focus left; mode default
|
||||||
|
bindsym j focus down; mode default
|
||||||
|
bindsym k focus up; mode default
|
||||||
|
bindsym l focus right; mode default
|
||||||
|
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
bindsym ctrl+w mode "default"
|
||||||
|
bindsym ctrl+shift+w mode "move"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
mode "move" {
|
||||||
|
bindsym Shift+h move left
|
||||||
|
bindsym Shift+j move down
|
||||||
|
bindsym Shift+k move up
|
||||||
|
bindsym Shift+l move right
|
||||||
|
|
||||||
|
bindsym h move left; mode default
|
||||||
|
bindsym j move down; mode default
|
||||||
|
bindsym k move up; mode default
|
||||||
|
bindsym l move right; mode default
|
||||||
|
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
bindsym ctrl+shift+w mode "default"
|
||||||
|
bindsym ctrl+w mode "focus"
|
||||||
|
}
|
||||||
|
|
||||||
mode "resize" {
|
mode "resize" {
|
||||||
# These bindings trigger as soon as you enter the resize mode
|
# These bindings trigger as soon as you enter the resize mode
|
||||||
|
|
||||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@@ -18,4 +18,5 @@
|
|||||||
.config/wally
|
.config/wally
|
||||||
.config/.keymapp
|
.config/.keymapp
|
||||||
.config/google-chrome
|
.config/google-chrome
|
||||||
.config/wally
|
.config/GIMP/
|
||||||
|
.config/weylus/
|
||||||
|
51
.vimrc
51
.vimrc
@@ -19,10 +19,10 @@ set ai
|
|||||||
set si
|
set si
|
||||||
set wrap
|
set wrap
|
||||||
|
|
||||||
" Visual mode pressing * or # searches for the current selection
|
|
||||||
" Super useful! From an idea by Michael Naumann
|
" Super useful! From an idea by Michael Naumann
|
||||||
vnoremap <silent> * :<C-u>call VisualSelection('', '')<CR>/<C-R>=@/<CR><CR>
|
"vnoremap <silent> * :<C-u>call VisualSelection('', '')<CR>/<C-R>=@/<CR><CR>
|
||||||
vnoremap <silent> # :<C-u>call VisualSelection('', '')<CR>?<C-R>=@/<CR><CR>
|
"vnoremap <silent> # :<C-u>call VisualSelection('', '')<CR>?<C-R>=@/<CR><CR>
|
||||||
|
|
||||||
|
|
||||||
" enable syntax highlighting
|
" enable syntax highlighting
|
||||||
syntax on
|
syntax on
|
||||||
@@ -58,8 +58,7 @@ set showmode
|
|||||||
"au FocusGained,BufEnter * silent! checktime
|
"au FocusGained,BufEnter * silent! checktime
|
||||||
|
|
||||||
" mapping a leader allows for more keycombos
|
" mapping a leader allows for more keycombos
|
||||||
|
"let mapleader = ","
|
||||||
let mapleader = ","
|
|
||||||
|
|
||||||
" auto completion menu after tab
|
" auto completion menu after tab
|
||||||
set wildmenu
|
set wildmenu
|
||||||
@@ -70,7 +69,7 @@ set wildignore=*.o,*~,*.pyc,*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store
|
|||||||
" show current pos info
|
" show current pos info
|
||||||
set ruler
|
set ruler
|
||||||
|
|
||||||
set laststatus=2
|
"set laststatus=2
|
||||||
|
|
||||||
"ignore case when searching
|
"ignore case when searching
|
||||||
set ignorecase
|
set ignorecase
|
||||||
@@ -79,11 +78,11 @@ set ignorecase
|
|||||||
set lazyredraw
|
set lazyredraw
|
||||||
|
|
||||||
" enable regex enginej
|
" enable regex enginej
|
||||||
set regexpengine=0
|
"set regexpengine=0
|
||||||
|
|
||||||
"Configure backspace so it acts as it should act
|
"Configure backspace so it acts as it should act
|
||||||
set backspace=eol,start,indent
|
"set backspace=eol,start,indent
|
||||||
set whichwrap+=<,>,h,l
|
"set whichwrap+=<,>,h,l
|
||||||
|
|
||||||
"plugins config
|
"plugins config
|
||||||
|
|
||||||
@@ -93,28 +92,30 @@ call plug#begin('~/.vim/plugged')
|
|||||||
Plug 'preservim/nerdtree'
|
Plug 'preservim/nerdtree'
|
||||||
" Plug 'prabirshrestha/vim-lsp'
|
" Plug 'prabirshrestha/vim-lsp'
|
||||||
Plug 'SirVer/ultisnips'
|
Plug 'SirVer/ultisnips'
|
||||||
Plug 'sheerun/vim-polyglot'
|
"Plug 'sheerun/vim-polyglot'
|
||||||
Plug 'petrbroz/vim-glsl'
|
Plug 'petrbroz/vim-glsl'
|
||||||
Plug 'Xuyuanp/nerdtree-git-plugin'
|
"Plug 'Xuyuanp/nerdtree-git-plugin'
|
||||||
Plug 'jayli/vim-easycomplete'
|
Plug 'jayli/vim-easycomplete'
|
||||||
|
Plug 'kien/rainbow_parenthesis'
|
||||||
|
"Plug 'kien/rainbow_parenth
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"nerdtree mappings
|
"nerdtree mappings
|
||||||
nnoremap <leader>n :NerdTreeFocus<CR>
|
"nnoremap <leader>n :NerdTreeFocus<CR>
|
||||||
nnoremap <C-n> :NERDTree<CR>
|
nnoremap <C-n> :NERDTree<CR>
|
||||||
nnoremap <C-t> :NERDTreeToggle<CR>
|
nnoremap <C-t> :NERDTreeToggle<CR>
|
||||||
nnoremap <C-f> :NERDTreeFind<CR>
|
nnoremap <C-f> :NERDTreeFind<CR>
|
||||||
"nerdtree git settings
|
"nerdtree git settings
|
||||||
let g:NERDTreeGitStatusUseNerdFonts = 1 " you should install nerdfonts by yourself. default: 0
|
"let g:NERDTreeGitStatusUseNerdFonts = 1 " you should install nerdfonts by yourself. default: 0
|
||||||
|
|
||||||
"ultisnip config
|
"ultisnip config
|
||||||
let g:UltiSnipsExpandTrigger="<C-s>"
|
"let g:UltiSnipsExpandTrigger="<C-s>"
|
||||||
let g:UltiSnipsJumpForwardTrigger="<C-b>"
|
"let g:UltiSnipsJumpForwardTrigger="<C-b>"
|
||||||
let g:UltiSnipsJumpBackwardTrigger="<C-z>"
|
"let g:UltiSnipsJumpBackwardTrigger="<C-z>"
|
||||||
|
"
|
||||||
let g:UltiSnipsEditSplit="vertical"
|
"let g:UltiSnipsEditSplit="vertical"
|
||||||
|
|
||||||
colorscheme gruvbox
|
colorscheme gruvbox
|
||||||
set background=dark
|
set background=dark
|
||||||
@@ -139,16 +140,16 @@ autocmd! BufNewFile,BufRead *.frag set ft=glsl
|
|||||||
autocmd! BufNewFile,BufRead *.fsh set ft=glsl
|
autocmd! BufNewFile,BufRead *.fsh set ft=glsl
|
||||||
|
|
||||||
|
|
||||||
set updatetime=300
|
set updatetime=3000
|
||||||
" easy complete settings:
|
" easy complete settings:
|
||||||
" highlight the symbol when holding the cursor if you need it
|
" highlight the symbol when holding the cursor if you need it
|
||||||
let g:easycomplete_cursor_word_hl = 1
|
"let g:easycomplete_cursor_word_hl = 1
|
||||||
" using nerdfont is highly recommened
|
" using nerdfont is highly recommened
|
||||||
let g:easycomplete_nerd_font = 1
|
"let g:easycomplete_nerd_font = 1
|
||||||
"goto code nav
|
"goto code nav
|
||||||
|
|
||||||
noremap gr :EasyCompleteReference<CR>
|
"noremap gr :EasyCompleteReference<CR>
|
||||||
noremap gd :EasyCompleteGotoDefinition<CR>
|
"noremap gd :EasyCompleteGotoDefinition<CR>
|
||||||
noremap rn :EasyCompleteRename<CR>
|
"noremap rn :EasyCompleteRename<CR>
|
||||||
noremap gb :BackToOrignialBuffer<CR>
|
"noremap gb :BackToOrignialBuffer<CR>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user