some vim tweaks to highlight the current line

In Windows on WSL with a bigger monitor I kept losing track of where my
cursor was when I had multiple files open, so this makes it a little bit
more clear where I'm currently editing when I switch windows in a
multi-window setup.
master
Jordan Orelli 2 years ago
parent 244238c10f
commit 1261a73e73

@ -94,3 +94,7 @@ fi
if [ -f "$HOME/.cargo/env" ]; then if [ -f "$HOME/.cargo/env" ]; then
source "$HOME/.cargo/env" source "$HOME/.cargo/env"
fi fi
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

@ -18,7 +18,7 @@ detailed_cpu_time=0
cpu_count_from_zero=0 cpu_count_from_zero=0
update_process_names=0 update_process_names=0
account_guest_in_cpu_meter=0 account_guest_in_cpu_meter=0
color_scheme=3 color_scheme=0
delay=15 delay=15
left_meters=LeftCPUs2 Memory Swap left_meters=LeftCPUs2 Memory Swap
left_meter_modes=1 1 1 left_meter_modes=1 1 1

@ -0,0 +1,12 @@
logs:
timestamps: no
gui:
returnImmediately: yes
customCommands:
containers:
- name: scylla shell
attach: true
command: 'docker exec -it {{ .Container.ID }} cqlsh'
serviceNames: []

@ -0,0 +1,4 @@
set shiftwidth=2
set tabstop=2
set expandtab
set list

@ -31,6 +31,7 @@ call vundle#begin()
Plugin 'b4b4r07/vim-hcl' " hcl syntax stuff? Plugin 'b4b4r07/vim-hcl' " hcl syntax stuff?
Plugin 'Glench/Vim-Jinja2-Syntax' " jinja2 syntax stuff Plugin 'Glench/Vim-Jinja2-Syntax' " jinja2 syntax stuff
Plugin 'rust-lang/rust.vim' " bare minimum rust syntax stuff Plugin 'rust-lang/rust.vim' " bare minimum rust syntax stuff
Plugin 'elubow/cql-vim'
" Past plugins " Past plugins
" "
@ -300,6 +301,7 @@ noremap <buffer> <silent> $ g$
" Normal Mode ---------------------------------------------------------------{{{ " Normal Mode ---------------------------------------------------------------{{{
" toggle line numbering with <leader>n " toggle line numbering with <leader>n
nnoremap <leader>n :set number!<CR> nnoremap <leader>n :set number!<CR>
set number
" Shortcut to show invisible characters " Shortcut to show invisible characters
nnoremap <leader>l :set list!<CR> nnoremap <leader>l :set list!<CR>
@ -484,4 +486,21 @@ set visualbell
" you know what, just disable the error bells entirely " you know what, just disable the error bells entirely
set noerrorbells set noerrorbells
" highlight the cursor line only in the current window
augroup CursorLine
au!
au VimEnter,WinEnter,BufWinEnter * setlocal cursorline
au WinLeave * setlocal nocursorline
augroup END
" integrate the wsl clipboard for yanking to the system clipboard
let s:clip = '/mnt/c/Windows/System32/clip.exe' " change this path according to your mount point
if executable(s:clip)
augroup WSLYank
autocmd!
autocmd TextYankPost * if v:event.operator ==# 'y' | call system(s:clip, @0) | endif
augroup END
endif
" ---------------------------------------------------------------------------}}} " ---------------------------------------------------------------------------}}}

@ -17,6 +17,7 @@ include=(
.vim/ftplugin .vim/ftplugin
.vimrc .vimrc
.config/htop/htoprc .config/htop/htoprc
.config/lazydocker/config.yml
) )
if [[ -d "$backup_dir" ]] ; then if [[ -d "$backup_dir" ]] ; then

Loading…
Cancel
Save