Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tm90/vimrc
A practical .vimrc for every day usage
https://github.com/tm90/vimrc
python vimrc
Last synced: about 2 months ago
JSON representation
A practical .vimrc for every day usage
- Host: GitHub
- URL: https://github.com/tm90/vimrc
- Owner: TM90
- Created: 2014-09-07T13:40:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-05-12T08:11:34.000Z (over 2 years ago)
- Last Synced: 2023-08-04T01:02:32.364Z (over 1 year ago)
- Topics: python, vimrc
- Language: Vim script
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cheat Sheet
This cheat sheet applies to the .vimrc in this repository
- \- -> means pressed togehter
- \+ -> means pressed in a row## in every mode:
- ctrl-z save## command mode:
- ,+m -> next tab
- ,+n -> previos tab
- u -> undo
- yy -> copy line
- p -> paste
- :9,12y -> copy from line 9 to 12
- dd -> delete line
- :9,12d -> delete from line 9 to 12
- :%s/foo/bar -> search foo in all lines and replace it with bar
- G -> jump to the file end
- x -> delete character
- $ -> jump to end of line
- A -> jump to end of line and switch to insert mode
- :%s/\s\\+$//g
### moving in splits
- ctrl-h move to left split
- ctrl-l move to right split
- ctrl-j move split up
- ctrl-k move split downWhen spell checking is enabled(.md,.wiki,.txt and README files) on a incorrect word:
- z+= -> Gives suggestions for the correct word
- ]+s -> go to the next incorrect word
- [+s -> go to the previous incorrect word
- z+g -> add the word to the dictonary## insert mode:
- tab -> auto completion## visual mode:
- > -> increase indent of selected block
- < -> decrease indent of selected block
- ,+s sort alphabetically# Plugins
## vim-fugitive
- :Gstatus
- :Gcommit
- :Gmerge
- :Gread -> git checkout --filename
- :Gblame## vim-multiple-cursors
- ctrl-n -> multiple selection
## tagbar
- "F8" -> tagbar toogle
## vim-flake8- "F7" -> run flake8
## fzf.vim ?https://github.com/junegunn/fzf.vim