Skip to content
Branch: master
Clone or download
Latest commit 7b36dfd May 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
files switch from auto-pairs to lexima.vim Mar 31, 2019
fixtures switch to alpine 3.9 Jan 31, 2019
.gitignore switch to alpine 3.9 Jan 31, 2019
.travis.yml fix travis config Oct 18, 2014
Dockerfile update alpine May 3, 2019
Makefile add make macos-install Feb 9, 2019
README.md remove backtics Feb 27, 2019
addons.yml fix php lsp Dec 21, 2018
all.yml switch to vim Apr 28, 2017
dotfiles.yml fix dotfiles Jan 11, 2019
inventory fix dotfiles Jan 11, 2019
languagetool.sh update Mar 10, 2019
myvim.yml remove backtics Feb 27, 2019

README.md

Requirements

  • Linux or Mac
  • make (for automatic installation)
  • git (for automatic installation)
  • docker

Setup

Manual

  1. Create alias myvim using your shell (bash/zsh/whatever) for:

    'docker run -it --rm -v /tmp:/tmp:cached -v $HOME/myvim/backups:/root/.vim/backups:cached -v $(pwd):/app:delegated -w /app mokevnin/dotfiles'
  2. Run myvim

Automatic

$ git clone git@github.com:mokevnin/dotfiles.git && cd dotfiles
$ make myvim-install
# open new terminal
$ myvim

$ make dotfiles-install # optional

VIM

Main

  • Switch ctrl and caps lock
  • Use ctrl + [ instead of esc

Moving between visible buffers

  • ctrl h - move left or open new left split
  • ctrl l - move right or open new right split
  • ctrl k - move up or open new top split
  • ctrl j - move down or open new bottom split
  • <leader> b - show buffer list

File Tree

  • <leader><leader> - toggle filetree

Searching

  • <leader> o - fuzzy search (files under git)
  • <leader> ff - fuzzy search (all files)
  • <leader> fa - fuzzy search (content in files)
  • <leader> fc - fuzzy search (content in files)

Code editing and navigation

  • gcc - toggle commenting
  • gj - navigate through blocks of code - (), {}, [], etс
  • gf - open a file corresponding to a word under the cursor
  • gd - go to definition
  • ]r and [r - go through linter errors
  • <leader>y & <leader>p Copy text to system clipboard
You can’t perform that action at this time.