Skip to content

junhonglee89/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

screenshot

init.vim

Prerequisite

  • neovim
brew install neovim
  • vi-plug
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

Usage

  1. Link init.vim file.
cd $HOME/.config/nvim
ln -sf $dotfiles/init.vim ./
  1. Open 'vim' editor
  2. Install plugins
:PlugInstall
<C-s>

Usage for plugins

NERDTree

https://github.com/preservim/nerdtree
<C-o> open NERDTree (keymapping)
<C-h> move cursor to NERDTree
<C-l> move cursor to vim
<C-I> show hiden file

multi-cursor

https://github.com/terryma/vim-multiple-cursors
<C-n> start multi-cursor and select the word on the cursor
<C-n> select the next word
<C-x> skip the next word
<C-p> move to the previous word
<A-n> start multi-cursor and select all words

<S-v> <C-n> i <esc> select visual block, start multi-cursor, start insert, and end

split

:sp horizontal split
:vsp vert split
<C-h,j,k,l> navigate between splited plains

CtrlP

https://github.com/ctrlpvim/ctrlp.vim
<C-p> open finder <C-j,k> navigate

Miscellaneous

If you want to yank into clipboard, use visual block (<S-v>), select area, use command "+y. If this deos not work in SSH session, you should install xsel (http://www.vergenet.net/~conrad/software/xsel/#download).

tmux

Prerequisite

  • tmux
brew install tmux
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

Usage

  1. Link tmux.conf file. Notice ., a hiden file.
cd $HOME
ln -sf $dotfiles/tmux.conf .tmux.conf
  1. Open tmux session
tmux
  1. Install tpm
    prefix + I (capital i)
    prefix will be <C-a> (<C-b> is default). Install window will show up in seconds and plugins will be installed.
  2. Reload tmux
    prefix + <C-s>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published