Skip to content

focus7eleven/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Screenshot

Obviously this setup works for me, a JavaScript developer on macOS, but this particular setup may not work for you. If this particular setup doesn't work for you, please steal ideas from this and if you like, contribute back tips, tricks, and other tidbits via Pull Requests if you like!

Contents

Vim and Neovim Setup

Here I list some of my favorite plugins and settings. For more information you can go checkout my .vimrc

I use neovim instead of vim, and I alias vim to nvim in .zshrc for convenience.

Plugins:

Settings:

" seemlessly move between vim panes and tmux panes
inoremap <C-h> <Left>
inoremap <C-j> <Down>
inoremap <C-k> <Up>
inoremap <C-l> <Right>
cnoremap <C-h> <Left>
cnoremap <C-j> <Down>
cnoremap <C-k> <Up>
cnoremap <C-l> <Right>

" line text objects
xnoremap il g_o^
onoremap il :<C-u>normal vil<CR>
xnoremap al $o0
onoremap al :<C-u>normal val<CR>

" buffer text objects
xnoremap i% :<C-u>let z = @/\|1;/^./kz<CR>G??<CR>:let @/ = z<CR>V'z
onoremap i% :<C-u>normal vi%<CR>
xnoremap a% GoggV
onoremap a% :<C-u>normal va%<CR>


" Change text without putting the text into register,
nnoremap c "_c
nnoremap cc "_cc

Tmux Setup

Why I still need a terminal multiplexer as I can have multiple panes in iTerm2?

Tmux is great, especially when it is used with vim. You can do a lot more things which iTerm2 does not support. I recommend this video for you to check out more.

How to generate the same style statusline for both tmux and vim?

Check out this plugin: edkolev/tmuxline.vim

ZSH Setup

My prompt choice: pure

About

my dotfiles of vim, tmux, zsh

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published