gialib's vim and other dotfiles, partially referenced YARD.
Both automatic installation and manual installation are available.
sh -c "`curl -fsSL https://raw.githubusercontent.com/gialib/dotfiles/master/install`"
It might take a long time for the first time installation because under the hood it will:
- Upgrade package management program
- Install vim
- Install vim Plugins
-
clone the project
git clone https://github.com/gialib/dotfiles.git ~/.dotfiles cd ~/.dotfiles
-
see all available rake tasks
rake -T
-
dry run and print all shell commands that will be executed
DEBUG=1 rake
-
execute default task
rake
rake update
rake uninstall
Note: Uninstallation will keep vim and plugins, but plugins won't be loaded because there's no configuration file.
:map
all mode key mappings:nmap
normal mode key mappings:vmap
visual mode key mappings:imap
insert mode key mappings
- [normal mode]
f then id
quick jump to any words in the screen, the id for each word will be shown once you pressedf
- [normal mode]
ctrl and ]
jump to definition, need to rebuild ctags first withctags -R --exclude=node_modules
- [normal mode]
ctrl and o
jump back to last cursor position - [normal mode]
ctrl and i
jump back to next cursor position - [normal mode]
space then space
jump to and jump back between the current editing file and the last edited file - [normal mode]
` then `
jump to and jump back between the current editing line and the last edited line
- [normal mode]
ctrl and n
press multiple times to select multiple current word and edit all of them at the same time
- [visual mode]
g then c
toggle comment
- [visual mode]
enter then =
align selected lines by = - [visual mode]
enter then =
align selected lines by :
- [normal mode]
space then f
find from files recursively - [normal mode]
space then e
open buffer lists - [normal mode]
space then y
open yank lists - [normal mode]
space then e
open undo list, go back to any edited version - [normal mode]
space then s
grep globally - [normal mode]
space then c
open console - [normal mode]
space then b
open tag bar - [normal mode]
space then w
open a new horizontal buffer on the right - [normal mode]
space then q
shortcut for :q - [normal mode]
space then o
maximize current buffer - [normal mode]
space then t
toggle directory tree - [normal mode]
ctrl and h/j/k/l
move left/up/down/right among buffers
Install all dotfiles
rake install_dotfiles
Or install specific dotfile running rake tasks listed in rake -T
, e.g.:
rake install_pryrc
Uninstall all dotfiles
rake uninstall_dotfiles
Uninstall specific dotfile
rake uninstall_pryrc