/dotfiles

NeoVim, Tmux and Oh My Zsh config files

Primary LanguageVim Script

andersonfernandes dotfiles

NeoVim config sample

Dependencies

You need to have installed this dependencies before continue:

Installation

Clone the repository:

git clone https://github.com/andersonfernandes/dotfiles ~/.dotfiles

Run the install script:

./.dotfiles/install.sh

Update

Pull the new version of the files:

cd ~/.dotfiles
git pull origin master

Run the update script:

./.dotfiles/update.sh

NeoVim keyboard mappings

Keys Action
<space> <leader> key
<leader> + ev Opens the neovim config file in a vertical split
<leader> + sv Reloads the neovim config
control + j Switch to the below pane
control + k Switch to the up pane
control + h Switch to the left pane
control + l Switch to the right pane
<leader> + vs Creates an vertical split
<leader> + hs Creates an horizontal split
<leader> + tn Creates a new tab
<leader> + tq Closes the current tab
K In Visual mode and with a block of code selected, moves the block up
J In Visual mode and with a block of code selected, moves the block down
<leader> + ut Updates the tags file of the current directory using Ctags
<leader> + jc Opens the files finder on the ./app/controllers/ folder
<leader> + jm Opens the files finder on the ./app/models/ folder
<leader> + js Opens the files finder on the ./app/services/ folder
<leader> + jr Opens the files finder on the ./app/repositories/ folder
control + f Prompt the :Ag command to find texts in the current folder
control + p Opens the files finder on the root of the project
control + b Opens the list of active Buffers on the session
<leader> + <space> Toggles the NERDTree
<leader + f> Toggles the NERDTree and locates the current file on the tree
<leader> + tt In a test file runs all tests in the current file, otherwise runs the last file tests
<leader> + tl In a test file runs the test nearest to the cursor, otherwise runs the last nearest test
<leader> + gs Runs a Git Status using vim-fugitive
<leader> + gh In the merge conflicts panel, grabs the left side of the diff
<leader> + gl In the merge conflicts panel, grabs the right side of the diff
<leader> + gc Opens the fzf checkout menu
<F7> Opens a new floaterm session
<F8> Opens the prev floaterm session, if available
<F9> Toggle the floaterm session visibility. If no session available, it creates a new one
<F10> Opens the next floaterm session, if available

License

MIT